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 | 21bebd2d4bc3e4c8f6003d1ebef785df7cef00fc (patch) | |
tree | 1749a67ab4daae56e77288c916c42293ffdc392e /Source | |
parent | 70dca1813dd7c230b77144578ea52e1862618739 (diff) | |
parent | eea0337c7d6bddea9e10c2128beb4cea046c3b79 (diff) | |
download | CMake-21bebd2d4bc3e4c8f6003d1ebef785df7cef00fc.zip CMake-21bebd2d4bc3e4c8f6003d1ebef785df7cef00fc.tar.gz CMake-21bebd2d4bc3e4c8f6003d1ebef785df7cef00fc.tar.bz2 |
Merge topic 'strdup' into release-3.18
eea0337c7d centos5: Fix FTBFS with strdup
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5026
Diffstat (limited to 'Source')
-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 |