aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-DBD-mysql
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-07-05 18:08:37 +0800
committerale <ale@FreeBSD.org>2004-07-05 18:08:37 +0800
commitccea32b4ea52deb07f7607453b2a6ee37583f5d1 (patch)
tree1117902ac4db2b66581fb76bd470bf133cc37f7e /databases/p5-DBD-mysql
parent15ee403e24b4a9ac32ac3270b0cc2ffb82504ea5 (diff)
downloadfreebsd-ports-gnome-ccea32b4ea52deb07f7607453b2a6ee37583f5d1.tar.gz
freebsd-ports-gnome-ccea32b4ea52deb07f7607453b2a6ee37583f5d1.tar.zst
freebsd-ports-gnome-ccea32b4ea52deb07f7607453b2a6ee37583f5d1.zip
Add patch for MySQL 4.1.3 API and unbreak build.
Obtained from: DBD::mysql CVS
Diffstat (limited to 'databases/p5-DBD-mysql')
-rw-r--r--databases/p5-DBD-mysql/files/patch-mysql.xs14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/p5-DBD-mysql/files/patch-mysql.xs b/databases/p5-DBD-mysql/files/patch-mysql.xs
new file mode 100644
index 000000000000..86bf6e093033
--- /dev/null
+++ b/databases/p5-DBD-mysql/files/patch-mysql.xs
@@ -0,0 +1,14 @@
+--- mysql.xs.orig Fri Oct 17 19:20:50 2003
++++ mysql.xs Tue Jun 29 05:03:15 2004
+@@ -97,7 +97,11 @@
+ }
+
+ if (strEQ(command, "shutdown")) {
++#if MYSQL_VERSION_ID < 40103
+ result = mysql_shutdown(sock);
++#else
++ result = mysql_shutdown(sock, SHUTDOWN_DEFAULT);
++#endif
+ } else if (strEQ(command, "reload")) {
+ result = mysql_reload(sock);
+ } else if (strEQ(command, "createdb")) {