Description: Only typedef my_bool for MySQL 8+, skip for MariaDB
 Kannel's mysql8_my_bool.patch unconditionally typedefs "bool my_bool" to
 fix builds against MySQL 8 (where the my_bool typedef was removed).
 However on MariaDB (default-libmysqlclient-dev), mysql.h already defines
 "typedef char my_bool;", causing a conflicting-types error
 ("conflicting types for 'my_bool'; have '_Bool'").
 Guard the typedef with #if !defined(MARIADB_BASE_VERSION) so it only
 applies to genuine MySQL, leaving MariaDB's own my_bool definition intact.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-04

--- a/gwlib/dbpool_mysql.c
+++ b/gwlib/dbpool_mysql.c
@@ -65,7 +65,9 @@
 
 #ifdef HAVE_MYSQL
 #include <mysql.h>
+#if !defined(MARIADB_BASE_VERSION)
 typedef bool my_bool;
+#endif
 #include <mysqld_error.h>
