mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 20:14:38 +08:00
21 lines
708 B
Diff
21 lines
708 B
Diff
|
=== 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 <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
|
||
|
|
||
|
|