summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2004-12-31 12:07:35 +0000
committerdemon <demon@FreeBSD.org>2004-12-31 12:07:35 +0000
commit17f931a0fedd0f4093204fa8400305f353983368 (patch)
treede627b94d86caea8f2221283ddb4c0333479a312 /databases
parentf1ad311c5b51459f59afd8f57b6c5a2322ec8de7 (diff)
downloadFreeBSD-ports-17f931a0fedd0f4093204fa8400305f353983368.zip
FreeBSD-ports-17f931a0fedd0f4093204fa8400305f353983368.tar.gz
Fix build with MySQL 4.1.x.
Submitted by: Michael Hambly <mike@blackbirdsoftware.com> PR: 74237
Diffstat (limited to 'databases')
-rw-r--r--databases/mysql-navigator/files/patch-src-mysql-mainwindow-mainwindowslotshutdown.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/mysql-navigator/files/patch-src-mysql-mainwindow-mainwindowslotshutdown.cxx b/databases/mysql-navigator/files/patch-src-mysql-mainwindow-mainwindowslotshutdown.cxx
new file mode 100644
index 0000000..1c1c81e
--- /dev/null
+++ b/databases/mysql-navigator/files/patch-src-mysql-mainwindow-mainwindowslotshutdown.cxx
@@ -0,0 +1,14 @@
+--- src/mysql/mainwindow/mainwindowslotshutdown.cxx.orig Tue Mar 5 07:13:22 2002
++++ src/mysql/mainwindow/mainwindowslotshutdown.cxx Fri Dec 31 12:49:00 2004
+@@ -9,7 +9,11 @@
+ if(z == 1)
+ return;
+
++#if ( MYSQL_VERSION_ID >= 40103 && MYSQL_VERSION_ID < 50000 ) || ( MYSQL_VERSION_ID >= 50001 )
++ if(mysql_shutdown(&mysql, SHUTDOWN_DEFAULT))
++#else
+ if(mysql_shutdown(&mysql))
++#endif
+ {
+ QMessageBox::critical(this, tr("MySQL Navigator"), QString::fromLocal8Bit(mysql_error(&mysql)));
+ }
OpenPOWER on IntegriCloud