Index: /trunk/psLib/src/db/psDB.c
===================================================================
--- /trunk/psLib/src/db/psDB.c	(revision 42785)
+++ /trunk/psLib/src/db/psDB.c	(revision 42786)
@@ -55,6 +55,5 @@
 #include "psMetadataConfig.h"
 
-
-# if (MYSQL_VERSION_ID >= 80000)
+# if (MYSQL_VERSION_ID >= 80001) && !defined MARIADB_VERSION_ID 
     # define MYSQL_BOOL bool
 # else
