freebsd-ports/databases/mysql-navigator/files/patch-src-mysql-mainwindow-mainwindowslotshutdown.cxx
Dmitry Sivachenko f4ac833f70 Fix build with MySQL 4.1.x.
Submitted by:	Michael Hambly <mike@blackbirdsoftware.com>
PR:		74237
2004-12-31 12:07:35 +00:00

14 lines
500 B
C++

--- 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)));
}