diff options
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config.h.cmake b/config.h.cmake index 86ebf43ef24..6a0527719f9 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -663,9 +663,13 @@ included first (or at least before <features.h> - so, practically, before including any system headers). - __GLIBC__ is defined in <features.h> + Check the include order by looking at __GLIBC__ (defined in <features.h>) + + 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 <my_config.h> MUST be included first! #endif |