瀏覽代碼

Merge topic 'strdup'

eea0337c7d centos5: Fix FTBFS with strdup

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5026
Brad King 5 年之前
父節點
當前提交
2683d72f96
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/cmStandardLexer.h

+ 4 - 0
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