]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Allow compiling against MySQL 8 client header files 6842/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 10 Aug 2018 11:30:46 +0000 (13:30 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 10 Aug 2018 11:30:46 +0000 (13:30 +0200)
modules/gmysqlbackend/smysql.cc

index 50cd9240053111c40de3f0251a42e548ed08b037..cd0fc8cb857c39f2d62a763b5d73b7f3d6ac7627 100644 (file)
 #include "pdns/namespaces.hh"
 #include "pdns/lock.hh"
 
+#if MYSQL_VERSION_ID >= 80000
+// Need to keep this for compatibility with MySQL < 8.0.0, which used typedef char my_bool;
+typedef bool my_bool;
+#endif
+
 bool SMySQL::s_dolog;
 pthread_mutex_t SMySQL::s_myinitlock = PTHREAD_MUTEX_INITIALIZER;