diff --git a/databases/mysqltcl/Makefile b/databases/mysqltcl/Makefile index 17651078864a..2bf79124cd61 100644 --- a/databases/mysqltcl/Makefile +++ b/databases/mysqltcl/Makefile @@ -1,26 +1,26 @@ PORTNAME= mysqltcl PORTVERSION= 3.052 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= databases tcl MASTER_SITES= http://www.xdobry.de/mysqltcl/ MAINTAINER= tcltk@FreeBSD.org COMMENT= TCL module for accessing MySQL databases based on msqltcl WWW= http://www.xdobry.de/mysqltcl/ USES= mysql tcl USE_LDCONFIG= yes PLIST_FILES= lib/${PORTNAME}-${PORTVERSION}/libmysqltcl${PORTVERSION}.so \ lib/${PORTNAME}-${PORTVERSION}/pkgIndex.tcl \ share/man/mann/mysqltcl.n.gz GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} \ --with-mysql-include=${LOCALBASE}/include/mysql \ --with-mysql-lib=${LOCALBASE}/lib/mysql \ --exec-prefix=${PREFIX} .include diff --git a/databases/mysqltcl/files/patch-generic_mysqltcl.c b/databases/mysqltcl/files/patch-generic_mysqltcl.c index 477c951daee7..9c0da226b27b 100644 --- a/databases/mysqltcl/files/patch-generic_mysqltcl.c +++ b/databases/mysqltcl/files/patch-generic_mysqltcl.c @@ -1,11 +1,19 @@ ---- generic/mysqltcl.c.orig 2024-01-26 14:58:40 UTC +--- generic/mysqltcl.c.orig 2012-10-24 20:26:34 UTC +++ generic/mysqltcl.c -@@ -911,7 +911,7 @@ static int Mysqltcl_Connect(ClientData clientData, Tcl +@@ -46,6 +46,7 @@ + #include + #include + #include ++#include + + #define MYSQL_SMALL_SIZE TCL_RESULT_SIZE /* Smaller buffer size. */ + #define MYSQL_NAME_LEN 80 /* Max. database name length. */ +@@ -911,7 +912,7 @@ static int Mysqltcl_Connect(ClientData clientData, Tcl #if (MYSQL_VERSION_ID>=32350) if(mysql_options_reconnect) { - my_bool reconnect = 1; + bool reconnect = 1; mysql_options(handle->connection, MYSQL_OPT_RECONNECT, &reconnect); } mysql_options(handle->connection,MYSQL_READ_DEFAULT_GROUP,groupname);