summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-10-02 11:57:40 +0200
committerSergei Golubchik <sergii@pisem.net>2014-10-02 11:57:40 +0200
commitaa36d9e74225f6db32fa01a8e1a2a3a6e6a5b77f (patch)
tree67a18a7571770c9642be560f6316d04f211c2c13 /config.h.cmake
parent02125587e12b761a6049c6cc5fc6a6c4b6ea7a10 (diff)
downloadmariadb-git-aa36d9e74225f6db32fa01a8e1a2a3a6e6a5b77f.tar.gz
MDEV-5120 Test suite test maria-no-logging fails
stat structure (from <sys/stat.h>) is conditionally defined to have different layout and size depending on the defined macros. The correct macro is defined in my_config.h, which means it MUST be included first (or, at least before <features.h> - so, practically, before including any system headers).
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 3b5501ffd32..4b0769d5cfa 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -641,4 +641,17 @@
#cmakedefine SIZEOF_TIME_T @SIZEOF_TIME_T@
#cmakedefine TIME_T_UNSIGNED @TIME_T_UNSIGNED@
+/*
+ stat structure (from <sys/stat.h>) is conditionally defined
+ to have different layout and size depending on the defined macros.
+ The correct macro is defined in my_config.h, which means it MUST be
+ included first (or at least before <features.h> - so, practically,
+ before including any system headers).
+
+ __GLIBC__ is defined in <features.h>
+*/
+#ifdef __GLIBC__
+#error <my_config.h> MUST be included first!
+#endif
+
#endif