aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-MySQLdb-devel
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-08-01 04:13:16 +0800
committerclement <clement@FreeBSD.org>2004-08-01 04:13:16 +0800
commitd5fb7fd98b620055c976e10db5e0ec48d7180d9b (patch)
tree0a523499369128be04e3b74fe7a1b6968193c5cf /databases/py-MySQLdb-devel
parentbe54f605490163e6bcf91bdc6a12cfa174e71b66 (diff)
downloadfreebsd-ports-gnome-d5fb7fd98b620055c976e10db5e0ec48d7180d9b.tar.gz
freebsd-ports-gnome-d5fb7fd98b620055c976e10db5e0ec48d7180d9b.tar.zst
freebsd-ports-gnome-d5fb7fd98b620055c976e10db5e0ec48d7180d9b.zip
- Fix build with MySQL 4.1.3
Reported by: crappy, thierry Submitted by: thierry Obtained from: http://sourceforge.net/tracker/index.php?func=detail&aid=998151&group_id=22307&atid=374934
Diffstat (limited to 'databases/py-MySQLdb-devel')
-rw-r--r--databases/py-MySQLdb-devel/files/patch-_mysql.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/databases/py-MySQLdb-devel/files/patch-_mysql.c b/databases/py-MySQLdb-devel/files/patch-_mysql.c
new file mode 100644
index 000000000000..c595576ce69d
--- /dev/null
+++ b/databases/py-MySQLdb-devel/files/patch-_mysql.c
@@ -0,0 +1,21 @@
+Index: MySQLdb/_mysql.c
+===================================================================
+RCS file: /cvsroot/mysql-python/MySQLdb/_mysql.c,v
+retrieving revision 1.49
+diff -u -r1.49 _mysql.c
+--- _mysql.c 7 Jun 2004 03:44:38 -0000 1.49
++++ _mysql.c 26 Jul 2004 16:58:29 -0000
+@@ -1542,7 +1542,13 @@
+ if (!PyArg_ParseTuple(args, "")) return NULL;
+ check_connection(self);
+ Py_BEGIN_ALLOW_THREADS
++
++#if MYSQL_VERSION_ID >= 040103
++ 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);