mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
Merge topic 'strdup' into release-3.18
eea0337c7d centos5: Fix FTBFS with strdup
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5026
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user