From 6f3cf661a48e0290678e2904ae30a9dac65f1947 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Fri, 22 Nov 2024 10:06:06 +0000 Subject: [PATCH] mariadb-connector-c: fix build with gcc-15 dont define bool with c23. use myFlags in empty if to avoid compiler error --- ...nnector-c-0001-fix-build-with-gcc-15.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/databases/mariadb-connector-c/patches/mariadb-connector-c-0001-fix-build-with-gcc-15.patch diff --git a/packages/databases/mariadb-connector-c/patches/mariadb-connector-c-0001-fix-build-with-gcc-15.patch b/packages/databases/mariadb-connector-c/patches/mariadb-connector-c-0001-fix-build-with-gcc-15.patch new file mode 100644 index 0000000000..50482e860d --- /dev/null +++ b/packages/databases/mariadb-connector-c/patches/mariadb-connector-c-0001-fix-build-with-gcc-15.patch @@ -0,0 +1,21 @@ ++++ a/include/ma_global.h 2024-11-22 10:01:02.006088573 +0000 ++++ b/include/ma_global.h 2024-11-22 10:01:02.006088573 +0000 +@@ -684,7 +684,6 @@ + typedef char my_bool; /* Small bool */ + typedef unsigned long long my_ulonglong; + #if !defined(bool) && !defined(bool_defined) && (!defined(HAVE_BOOL) || !defined(__cplusplus)) +-typedef char bool; /* Ordinary boolean values 0 1 */ + #endif + /* Macros for converting *constants* to the right type */ + #define INT8(v) (int8) (v) +--- a/libmariadb/ma_alloc.c 2024-11-22 10:08:46.473445080 +0000 ++++ b/libmariadb/ma_alloc.c 2024-11-22 10:08:46.473445080 +0000 +@@ -170,7 +170,7 @@ + va_list args; + char **ptr,*start,*res; + size_t tot_length,length; +- ++if(myFlags){} + va_start(args,myFlags); + tot_length=0; + while ((ptr=va_arg(args, char **)))