diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-03-26 19:32:28 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-03-26 19:32:28 +0000 |
commit | 3903809d519c5c3df16833a3e086b88e6cfece06 (patch) | |
tree | e4df4fbb1a12de28ff2839c27372d2040cf5ea1b /databases/p5-Mysql/files/patch-dbd-myMsql.h | |
parent | Upgrade to 2.11. (diff) |
- Allow build against mysql-client 4.X
PR: ports/83373
Submitted by: Sven Berkvens-Matthijsse <sven@ilse.net>
Notes
Notes:
svn path=/head/; revision=158177
Diffstat (limited to 'databases/p5-Mysql/files/patch-dbd-myMsql.h')
-rw-r--r-- | databases/p5-Mysql/files/patch-dbd-myMsql.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/p5-Mysql/files/patch-dbd-myMsql.h b/databases/p5-Mysql/files/patch-dbd-myMsql.h new file mode 100644 index 000000000000..b2cd424bc6d7 --- /dev/null +++ b/databases/p5-Mysql/files/patch-dbd-myMsql.h @@ -0,0 +1,14 @@ +--- dbd/myMsql.h.orig Wed Nov 30 09:28:39 2005 ++++ dbd/myMsql.h Wed Nov 30 09:29:09 2005 +@@ -117,7 +117,11 @@ + #define MyGetHostInfo(s) mysql_get_host_info(s) + #define MyGetServerInfo(s) mysql_get_server_info(s) + #define MyGetProtoInfo(s) mysql_get_proto_info(s) ++#if MYSQL_VERSION_ID < 40000 + #define MyShutdown(s) mysql_shutdown(s) ++#else ++#define MyShutdown(s) mysql_shutdown(s, SHUTDOWN_DEFAULT) ++#endif + #ifdef REFRESH_GRANT + #define MyReload(s) mysql_refresh(s, \ + REFRESH_GRANT|REFRESH_LOG|REFRESH_TABLES) |