aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2024-05-21 07:16:38 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2024-05-21 07:18:58 +0000
commitcdd1752148745b583a6ffcc92955e994c07e0adb (patch)
tree0a8fb140623d684de3a41f98623df5287e583e56
parentc1a1bc6d296b8a602ae1d9cdc7b7896a93c93562 (diff)
downloadports-cdd1752148745b583a6ffcc92955e994c07e0adb.tar.gz
ports-cdd1752148745b583a6ffcc92955e994c07e0adb.zip
databases/mysqltcl: fix build with MariaDB
PR: 277922 (exp-run) Reported by: antoine
-rw-r--r--databases/mysqltcl/Makefile2
-rw-r--r--databases/mysqltcl/files/patch-generic_mysqltcl.c12
2 files changed, 11 insertions, 3 deletions
diff --git a/databases/mysqltcl/Makefile b/databases/mysqltcl/Makefile
index 17651078864a..2bf79124cd61 100644
--- a/databases/mysqltcl/Makefile
+++ b/databases/mysqltcl/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mysqltcl
PORTVERSION= 3.052
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases tcl
MASTER_SITES= http://www.xdobry.de/mysqltcl/
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,6 +1,14 @@
---- 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 <string.h>
+ #include <ctype.h>
+ #include <stdlib.h>
++#include <stdbool.h>
+
+ #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)
{