summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-21 11:24:55 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-21 11:25:02 (GMT)
commit21bebd2d4bc3e4c8f6003d1ebef785df7cef00fc (patch)
tree1749a67ab4daae56e77288c916c42293ffdc392e /Source
parent70dca1813dd7c230b77144578ea52e1862618739 (diff)
parenteea0337c7d6bddea9e10c2128beb4cea046c3b79 (diff)
downloadCMake-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.h4
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