Skip to content
Permalink
Browse files

MDEV-10788 Not able to compile source with -DBUILD_CONFIG=mysql_relea…

…se -DCMAKE_BUILD_TYPE=Debug

fix incorrect merge, 831b531 was not fully merged into 10.0
  • Loading branch information...
vuvova committed May 18, 2017
1 parent 7c03edf commit 6dcc378964a1a35c0c95b6963b73224e52cf4cad
Showing with 0 additions and 17 deletions.
  1. +0 −17 config.h.cmake
@@ -663,21 +663,4 @@
#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).

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).
*/
#if defined(__GLIBC__) && defined(SAFE_MUTEX)
#error <my_config.h> MUST be included first!
#endif

#endif

0 comments on commit 6dcc378

Please sign in to comment.
You can’t perform that action at this time.