diff options
author | ume <ume@FreeBSD.org> | 2003-06-01 11:55:35 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-06-01 11:55:35 +0800 |
commit | ba5991e1cabbee6dba24163ecdcc457794c012cb (patch) | |
tree | 81a3558e945ad24ce4dde4554ef00f0195f0eccc /security | |
parent | 4a2356cc4f240f56b41ca82d8cd2ed98ee12531d (diff) | |
download | freebsd-ports-gnome-ba5991e1cabbee6dba24163ecdcc457794c012cb.tar.gz freebsd-ports-gnome-ba5991e1cabbee6dba24163ecdcc457794c012cb.tar.zst freebsd-ports-gnome-ba5991e1cabbee6dba24163ecdcc457794c012cb.zip |
make MySQL plugin work with MySQL 4.X.
Diffstat (limited to 'security')
-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; + |