gentoo/dev-libs/apr-util/files/apr-util-1.6.1-my_bool.patch
Thomas Deutschmann 5a8c2df53d
dev-libs/apr-util: update my_bool patch
We need to take a different solution because MariaDB Connector C
is still defining my_bool.

Closes: https://bugs.gentoo.org/734020
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
2020-07-28 00:08:36 +02:00

16 lines
311 B
Diff

--- a/dbd/apr_dbd_mysql.c
+++ b/dbd/apr_dbd_mysql.c
@@ -41,6 +41,12 @@
#endif
#endif
#include <mysql.h>
+// MariaDB still include definition of my_bool but has a higher version ID
+#ifndef MARIADB_VERSION_ID
+#if MYSQL_VERSION_ID > 80000
+typedef bool my_bool;
+#endif
+#endif
#include <errmsg.h>
#endif