=== modified file 'config.h.cmake' --- config.h.cmake 2014-10-02 09:57:40 +0000 +++ config.h.cmake 2014-11-10 18:17:39 +0000 @@ -648,9 +648,13 @@ included first (or at least before - so, practically, before including any system headers). - __GLIBC__ is defined in + Check the include order by looking at __GLIBC__ (defined in ) + + But we cannot force all third-party clients/connectors to include + my_config.h first. So, their crashes are their responsibility, + we enable this check only for MariaDB sources (SAFE_MUTEX check). */ -#ifdef __GLIBC__ +#if defined(__GLIBC__) && defined(SAFE_MUTEX) #error MUST be included first! #endif