From ee220fee8ff5c85b5d6c1ee0e401be7f9ea807d2 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Fri, 10 Aug 2018 13:30:46 +0200 Subject: [PATCH] Allow compiling against MySQL 8 client header files --- modules/gmysqlbackend/smysql.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.47.2