diff options
author | Brad King <brad.king@kitware.com> | 2020-07-21 11:24:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-07-21 11:25:02 (GMT) |
commit | 2683d72f9676ee479658dfe8e549ea3bfb2aa39b (patch) | |
tree | 16e541fc652b5f9abff1bee1efa37595c228bc1d | |
parent | 9be792a5f0a3bf35743be5764d2be7f152169ca5 (diff) | |
parent | eea0337c7d6bddea9e10c2128beb4cea046c3b79 (diff) | |
download | CMake-2683d72f9676ee479658dfe8e549ea3bfb2aa39b.zip CMake-2683d72f9676ee479658dfe8e549ea3bfb2aa39b.tar.gz CMake-2683d72f9676ee479658dfe8e549ea3bfb2aa39b.tar.bz2 |
Merge topic 'strdup'
eea0337c7d centos5: Fix FTBFS with strdup
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5026
-rw-r--r-- | Source/cmStandardLexer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmStandardLexer.h b/Source/cmStandardLexer.h index cc67ac2..e0b2116 100644 --- a/Source/cmStandardLexer.h +++ b/Source/cmStandardLexer.h @@ -3,6 +3,10 @@ #ifndef cmStandardLexer_h #define cmStandardLexer_h +#if defined(__linux) +/* Needed for glibc < 2.12 */ +# define _XOPEN_SOURCE 600 +#endif #if !defined(_WIN32) && !defined(__sun) /* POSIX APIs are needed */ # define _POSIX_C_SOURCE 200809L |