ganapathi / rpms / mariadb

Forked from rpms/mariadb 4 years ago
Clone

Blame SOURCES/mariadb-headerfile.patch

64180b
diff -up mariadb-5.5.40/config.h.cmake.rev4355 mariadb-5.5.40/config.h.cmake
64180b
--- mariadb-5.5.40/config.h.cmake.rev4355	2014-10-08 15:19:51.000000000 +0200
64180b
+++ mariadb-5.5.40/config.h.cmake	2014-12-15 13:34:52.874221087 +0100
64180b
@@ -648,9 +648,13 @@
64180b
   included first (or at least before <features.h> - so, practically,
64180b
   before including any system headers).
64180b
 
64180b
-  __GLIBC__ is defined in <features.h>
64180b
+  Check the include order by looking at __GLIBC__ (defined in <features.h>)
64180b
+
64180b
+  But we cannot force all third-party clients/connectors to include
64180b
+  my_config.h first. So, their crashes are their responsibility,
64180b
+  we enable this check only for MariaDB sources (SAFE_MUTEX check).
64180b
 */
64180b
-#ifdef __GLIBC__
64180b
+#if defined(__GLIBC__) && defined(SAFE_MUTEX)
64180b
 #error <my_config.h> MUST be included first!
64180b
 #endif
64180b