From c4598ce30094a084dec7cd4aba157e1a94d488d6 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 10 Nov 2014 19:17:39 +0100 Subject: MDEV-6862 "#error " and third-party libraries only enforce the include order if SAFE_MUTEX is defined (that is, in MariaDB source builds in debug mode) --- config.h.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config.h.cmake') diff --git a/config.h.cmake b/config.h.cmake index 4b0769d5cfa..34f77dba050 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -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 -- cgit v1.2.1