]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Typedef my_bool if missing.
authorMark Andrews <marka@isc.org>
Mon, 16 Mar 2020 05:44:51 +0000 (16:44 +1100)
committerMark Andrews <marka@isc.org>
Thu, 26 Mar 2020 22:12:22 +0000 (09:12 +1100)
ORACLE MySQL 8.0 has dropped the my_bool type, so we need to reinstate
it back when compiling with that version or higher.  MariaDB is still
keeping the my_bool type.  The numbering between the two (MariaDB 5.x
jumped to MariaDB 10.x) doesn't make the life of the developer easy.

(cherry picked from commit c6d5d5c88f8fe61d21d9f2911e9649f89772527d)

contrib/dlz/drivers/dlz_mysql_driver.c
contrib/dlz/modules/mysql/dlz_mysql_dynamic.c
contrib/dlz/modules/mysqldyn/dlz_mysqldyn_mod.c

index ca97f9f48e44b0b96a586ab15257973dd95df4c8..5bcce202fb383784bb4f335f3d2a54d01747df01 100644 (file)
 
 #include <mysql.h>
 
+#if !defined(LIBMARIADB) && MYSQL_VERSION_ID >= 80000
+typedef bool my_bool;
+#endif /* !defined(LIBMARIADB) && MYSQL_VERSION_ID >= 80000 */
+
 static dns_sdlzimplementation_t *dlz_mysql = NULL;
 
 #define dbc_search_limit 30
index 86bb58cec5a0fc9d16b42b73ef0bdf965f772b45..67069ac17559397b5885fd88cdd0cf2a83811333 100644 (file)
@@ -57,6 +57,9 @@
 #include <dlz_pthread.h>
 
 #include <mysql/mysql.h>
+#if !defined(LIBMARIADB) && MYSQL_VERSION_ID >= 80000
+typedef bool my_bool;
+#endif /* !defined(LIBMARIADB) && MYSQL_VERSION_ID >= 80000 */
 
 #define dbc_search_limit 30
 #define ALLNODES 1
index 9b126fda8099bd1a6a82c368733a94fc930efa61..44a5d909ae23c2284ba9f8310daf4ec1fe3db337 100644 (file)
 #include <dlz_list.h>
 #include <dlz_pthread.h>
 
+#if !defined(LIBMARIADB) && MYSQL_VERSION_ID >= 80000
+typedef bool my_bool;
+#endif /* !defined(LIBMARIADB) && MYSQL_VERSION_ID >= 80000 */
+
 /*
  * The SQL queries that will be used for lookups and updates are defined
  * here.  They will be processed into queries by the build_query()