MySQL 4.1.3 changes mysql_shutdown() function
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3761
Reference: http://dev.mysql.com/doc/mysql/en/mysql_shutdown.html
Reported by Dan Nelson dnelson_1901@yahoo.com
The 4.1.3 release of mysql adds another argument to mysql_shutdown(). Currently the only allowed value is SHUTDOWN_DEFAULT. I assume later versions will add other options, but since there is currently only one, this patch should be sufficient to allow pike to build against both old and new versions.
===================================================================
RCS file: /cvs/Pike/7.6/src/modules/Mysql/mysql.c,v
retrieving revision 1.81
diff -u -r1.81 mysql.c
--- mysql.c 19 Mar 2004 14:49:44 -0000 1.81
+++ mysql.c 13 Jul 2004 16:43:47 -0000
@@ -59,6 +59,10 @@
#endif /* HAVE_MYSQL_ERRMSG_H */
#endif /* HAVE_ERRMGS_H */
+#if MYSQL_VERSION_ID >= 40103
+/* 4.1.3 added an extra shutdown_level argument */
+#define mysql_shutdown(m) mysql_shutdown(m, SHUTDOWN_DEFAULT);
+#endif
#endif /* HAVE_MYSQL */