summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJouni Kosonen <jouni.kosonen@tukesoft.com>2020-02-02 07:48:52 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-02-14 17:01:41 +0100
commita1391e36805f38ef6a18fd2077095ad3f6c63261 (patch)
tree93edb5423d11668d19d4ded108c6642dd498f8a2 /net-dns/bind/files
parentdev-python/mysql-connector-python: bump to v8.0.19 (diff)
downloadgentoo-a1391e36805f38ef6a18fd2077095ad3f6c63261.tar.gz
gentoo-a1391e36805f38ef6a18fd2077095ad3f6c63261.tar.bz2
gentoo-a1391e36805f38ef6a18fd2077095ad3f6c63261.zip
net-dns/bind: fix building against >=dev-db/mysql-connector-c-8.x
Closes: https://bugs.gentoo.org/692834 Signed-off-by: Jouni Kosonen <jouni.kosonen@tukesoft.com> Closes: https://github.com/gentoo/gentoo/pull/14529 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'net-dns/bind/files')
-rw-r--r--net-dns/bind/files/bind-9.14.8-mysql8-bool.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-dns/bind/files/bind-9.14.8-mysql8-bool.patch b/net-dns/bind/files/bind-9.14.8-mysql8-bool.patch
new file mode 100644
index 000000000000..8546edc1521d
--- /dev/null
+++ b/net-dns/bind/files/bind-9.14.8-mysql8-bool.patch
@@ -0,0 +1,15 @@
+--- a/contrib/dlz/drivers/dlz_mysql_driver.c
++++ b/contrib/dlz/drivers/dlz_mysql_driver.c
+@@ -789,8 +789,11 @@ mysql_create(const char *dlzname, unsigned int argc, char *argv[],
+ char *endp;
+ int j;
+ unsigned int flags = 0;
++#if MYSQL_VERSION_ID >= 80000
++ typedef bool my_bool; // Workaround to make library work with MySQL client 8.0 as well as earlier versions
++#endif
+ #if MYSQL_VERSION_ID >= 50000
+- my_bool auto_reconnect = 1;
++ my_bool auto_reconnect = 1;
+ #endif
+
+ UNUSED(driverarg);