diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-06-01 03:55:35 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-06-01 03:55:35 +0000 |
commit | ea0e64f4a17ea06a4e7cbe081b67a75974716c11 (patch) | |
tree | 52119ef7b1b616ed2eb8a6b1d90a428b5952e441 /security/cyrus-sasl2 | |
parent | - Add WITH_GNUSTEP_DEVEL (diff) |
make MySQL plugin work with MySQL 4.X.
Notes
Notes:
svn path=/head/; revision=81844
Diffstat (limited to 'security/cyrus-sasl2')
-rw-r--r-- | security/cyrus-sasl2/files/patch-plugins::mysql.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/cyrus-sasl2/files/patch-plugins::mysql.c b/security/cyrus-sasl2/files/patch-plugins::mysql.c new file mode 100644 index 000000000000..30850d3bbdc4 --- /dev/null +++ b/security/cyrus-sasl2/files/patch-plugins::mysql.c @@ -0,0 +1,19 @@ +--- plugins/mysql.c.orig Fri Mar 7 13:26:42 2003 ++++ plugins/mysql.c Fri Mar 7 13:30:38 2003 +@@ -325,8 +325,15 @@ + sparams->utils->log(NULL, SASL_LOG_WARN, + "mysql plugin try and connect to %s\n", + cur_host); ++#ifdef HAVE_MYSQL_REAL_CONNECT ++ mysql_init(&mysql); ++ sock = mysql_real_connect(&mysql,cur_host,settings->mysql_user, ++ settings->mysql_passwd, ++ NULL,0,NULL,CLIENT_COMPRESS); ++#else + sock = mysql_connect(&mysql,cur_host,settings->mysql_user, + settings->mysql_passwd); ++#endif + if (sock) break; + + cur_host = db_host; + |