From: Chris Hofstaedtler Date: Fri, 10 Aug 2018 11:30:46 +0000 (+0200) Subject: Allow compiling against MySQL 8 client header files X-Git-Tag: dnsdist-1.3.3~166^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6842%2Fhead;p=thirdparty%2Fpdns.git Allow compiling against MySQL 8 client header files --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index 50cd924005..cd0fc8cb85 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -32,6 +32,11 @@ #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;