projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2803ebc
)
Do not use _POSIX_C_SOURCE on Darwin
author
Mort Yao
<mort.yao@gmail.com>
Fri, 20 Mar 2015 01:56:18 +0000
(09:56 +0800)
committer
Mort Yao
<mort.yao@gmail.com>
Fri, 20 Mar 2015 01:56:18 +0000
(09:56 +0800)
src/pal/src/configure.cmake
patch
|
blob
|
history
diff --git
a/src/pal/src/configure.cmake
b/src/pal/src/configure.cmake
index
a067ee0
..
206801c
100644
(file)
--- a/
src/pal/src/configure.cmake
+++ b/
src/pal/src/configure.cmake
@@
-6,7
+6,9
@@
include(CheckIncludeFiles)
include(CheckStructHasMember)
include(CheckTypeSize)
-set(CMAKE_REQUIRED_DEFINITIONS "-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L")
+if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
+ set(CMAKE_REQUIRED_DEFINITIONS "-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L")
+endif()
check_include_files(ieeefp.h HAVE_IEEEFP_H)
check_include_files(alloca.h HAVE_ALLOCA_H)
check_include_files(sys/vmparam.h HAVE_SYS_VMPARAM_H)