diff --git a/src/common/sql.cpp b/src/common/sql.cpp index e32778ba5c..75debe3302 100644 --- a/src/common/sql.cpp +++ b/src/common/sql.cpp @@ -12,12 +12,12 @@ #include "winapi.hpp" #endif #include -#include #include // strtoul // MySQL 8.0 or later removed my_bool typedef. // Reintroduce it as a bandaid fix. -#if MYSQL_VERSION_ID >= 80000 +// See https://bugs.mysql.com/?id=87337 +#if !defined(MARIADB_BASE_VERSION) && !defined(MARIADB_VERSION_ID) && MYSQL_VERSION_ID >= 80001 && MYSQL_VERSION_ID != 80002 #define my_bool bool #endif