diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2004-08-27 18:40:15 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2004-08-27 18:40:15 +0000 |
commit | a47d0e4abd8514186854dc182e3b8665f274a506 (patch) | |
tree | 1ff6a61733d30e14468f4ac019e5e53b70ffc9a3 /databases/mysqlcppapi/files | |
parent | add slave port for Photo Image Print System for Linux --- EPSON PM-730C (diff) |
A fork of mysql++ C++ API for MySQL
PR: ports/70050
Submitted by: Jie Gao <gaoj@cpsc.ucalgary.ca>
Notes
Notes:
svn path=/head/; revision=117444
Diffstat (limited to 'databases/mysqlcppapi/files')
-rw-r--r-- | databases/mysqlcppapi/files/patch-configure | 13 | ||||
-rw-r--r-- | databases/mysqlcppapi/files/patch-mysqlcppapi-2.0.pc.in | 11 | ||||
-rw-r--r-- | databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc | 16 |
3 files changed, 40 insertions, 0 deletions
diff --git a/databases/mysqlcppapi/files/patch-configure b/databases/mysqlcppapi/files/patch-configure new file mode 100644 index 000000000000..e81daa02854a --- /dev/null +++ b/databases/mysqlcppapi/files/patch-configure @@ -0,0 +1,13 @@ +--- configure~ Wed Aug 4 23:58:41 2004 ++++ configure Thu Aug 5 00:12:29 2004 +@@ -18465,8 +18465,8 @@ + fi; + + +-MYSQL_LIBS="-L${MYSQL_PREFIX}/mysql/lib/mysql -lmysqlclient -L${MYSQL_PREFIX}/lib/mysql -lmysqlclient" +-MYSQL_CFLAGS="-I${MYSQL_PREFIX}/mysql/include" ++MYSQL_LIBS="-L${MYSQL_PREFIX}/lib/mysql -lmysqlclient" ++MYSQL_CFLAGS="-I${MYSQL_PREFIX}/include" + + + diff --git a/databases/mysqlcppapi/files/patch-mysqlcppapi-2.0.pc.in b/databases/mysqlcppapi/files/patch-mysqlcppapi-2.0.pc.in new file mode 100644 index 000000000000..c5bcf9e97b81 --- /dev/null +++ b/databases/mysqlcppapi/files/patch-mysqlcppapi-2.0.pc.in @@ -0,0 +1,11 @@ +--- mysqlcppapi-2.0.pc.in.orig Thu Mar 21 03:06:01 2002 ++++ mysqlcppapi-2.0.pc.in Thu Aug 5 15:37:18 2004 +@@ -7,6 +7,6 @@ + Description: C++ wrapper for MySQL client library + Requires: + Version: @VERSION@ +-Libs: -L${libdir} -lmysqlcppapi-1.9 @MYSQL_LIBS@ +-Cflags: -I${includedir}/mysqlcppapi-2.0 -I${libdir}/mysqlcppapi-2.0/include @MYSQL_CFLAGS@ ++Libs: -L${libdir} -lmysqlcppapi @MYSQL_LIBS@ @LDFLAGS@ ++Cflags: @CPPFLAGS@ @MYSQL_CFLAGS@ -I${prefix}/include + diff --git a/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc b/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc new file mode 100644 index 000000000000..aa3f2567e801 --- /dev/null +++ b/databases/mysqlcppapi/files/patch-mysqlcppapi-Connection.cc @@ -0,0 +1,16 @@ +--- mysqlcppapi/Connection.cc.orig Wed Aug 4 23:15:58 2004 ++++ mysqlcppapi/Connection.cc Wed Aug 4 23:18:13 2004 +@@ -211,9 +211,11 @@ + bool Connection::shutdown () + { + check_connection_is_open(); +- ++#if ( MYSQL_VERSION_ID == 40103 ) || ( MYSQL_VERSION_ID == 50001 ) ++ bool suc = !(mysql_shutdown(m_sharedptr_connection.obj(),SHUTDOWN_DEFAULT)); ++#else + bool suc = !(mysql_shutdown(m_sharedptr_connection.obj())); +- ++#endif + if (!suc) + throw ex_BadQuery(error()); + |