summaryrefslogtreecommitdiff
path: root/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-10-13 02:53:10 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-10-13 02:53:10 +0000
commit3e8d8ca41e2edd91917fb3b63d33a9137021c532 (patch)
tree3ee9000e5d8442667977c2b9681538ef217c62f6 /databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc
parentupdate to 1.7.5. (diff)
[maintainer] Unbreak databases/mysqlcppapi after mysql41-* update
databases/mysqlcppapi is unable to detect mysql-4.1.4 and use new mysql_shutdown() api. Thus it is broken with mysql41-* after mysql41-* were updated to 4.1.4. I hope this fix can make it way to ports before the freeze. PR: ports/71348 Submitted by: Jie Gao <gaoj@cpsc.ucalgary.ca>
Notes
Notes: svn path=/head/; revision=119143
Diffstat (limited to '')
-rw-r--r--databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc b/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc
index aa3f2567e801..ffbeb0be9d22 100644
--- a/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc
+++ b/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc
@@ -5,7 +5,7 @@
{
check_connection_is_open();
-
-+#if ( MYSQL_VERSION_ID == 40103 ) || ( MYSQL_VERSION_ID == 50001 )
++#if ( MYSQL_VERSION_ID >= 50001 ) || (( MYSQL_VERSION_ID < 50000 ) && ( MYSQL_VERSION_ID >= 40103 ))
+ bool suc = !(mysql_shutdown(m_sharedptr_connection.obj(),SHUTDOWN_DEFAULT));
+#else
bool suc = !(mysql_shutdown(m_sharedptr_connection.obj()));