$NetBSD: patch-ab,v 1.1 2006/02/26 16:37:41 joerg Exp $

--- _mysql.c.orig	2002-08-01 05:01:30.000000000 +0000
+++ _mysql.c
@@ -39,6 +39,7 @@ PERFORMANCE OF THIS SOFTWARE.
 
 #include "structmember.h"
 #include "mysql.h"
+#include "mysql_version.h"
 #include "mysqld_error.h"
 #include "errmsg.h"
 
@@ -1353,7 +1354,11 @@ _mysql_ConnectionObject_shutdown(
 	if (!PyArg_NoArgs(args)) return NULL;
 	check_connection(self);
 	Py_BEGIN_ALLOW_THREADS
+#if MYSQL_VERSION_ID >= 40103
+	r = mysql_shutdown(&(self->connection), SHUTDOWN_DEFAULT);
+#else
 	r = mysql_shutdown(&(self->connection));
+#endif
 	Py_END_ALLOW_THREADS
 	if (r) return _mysql_Exception(self);
 	Py_INCREF(Py_None);
