summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-10-09 10:30:11 +0200
committerSergei Golubchik <sergii@pisem.net>2014-10-09 10:30:11 +0200
commit1b75bed00fa4ea3925f513f4825deb00cb158d5b (patch)
tree0822ed2a2ca42ba1acb82a6737336bbfe219bebe /config.h.cmake
parent689ffe3559a4b7bacd13503ba93659b2f4560bbb (diff)
parentb2d71434ed24d0901155fe68b0b7ee4fdad0e2d4 (diff)
downloadmariadb-git-1b75bed00fa4ea3925f513f4825deb00cb158d5b.tar.gz
5.5.40+ merge
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 8faf887730a..86ebf43ef24 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -656,4 +656,17 @@
#define __STDC_FORMAT_MACROS
#endif
+/*
+ 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