blob: ba38cbde92c76d086becd2e0f31cb3bfae997d88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ad,v 1.4 2005/01/17 11:26:39 markd Exp $
--- kmysqladmin/backend/my_sql/my_sql.cpp.orig 2004-09-22 14:53:03.000000000 +1200
+++ kmysqladmin/backend/my_sql/my_sql.cpp
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <string.h>
#include <mysql_com.h>
+#include <mysql_version.h>
#include <cmath>
#include <iostream>
@@ -1184,7 +1185,11 @@ int CMySql::shutdown()
int i;
if (!Sql_Connection)
return 0;
- i = mysql_shutdown(Sql_Connection);
+ i = mysql_shutdown(Sql_Connection
+#if MYSQL_VERSION_ID >= 40103
+ , SHUTDOWN_DEFAULT
+#endif
+ );
if (i < 0) {
do_message(get_last_error());
}
|