summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv
diff options
context:
space:
mode:
authorEric Berge <eric.berge@quantum.com>2016-12-21 21:38:28 (GMT)
committerEric Berge <eric.berge@quantum.com>2016-12-22 04:11:28 (GMT)
commitb7f0b1240f9c251d059fafcde878168f2b9a6664 (patch)
tree3a44fb9391bb2c3aed26dfabe92dc42dd03fe3d2 /Utilities/cmlibuv
parentba8bb32162ae7bc42c4a3a521a4e4b98274d9d8e (diff)
downloadCMake-b7f0b1240f9c251d059fafcde878168f2b9a6664.zip
CMake-b7f0b1240f9c251d059fafcde878168f2b9a6664.tar.gz
CMake-b7f0b1240f9c251d059fafcde878168f2b9a6664.tar.bz2
libuv requires _XOPEN_SOURCE 600 on Solaris 11
This avoid build errors from the /usr/include/sys/feature_tests.h include file which disallows setting XOpen versions less than 6 when in C99 mode.
Diffstat (limited to 'Utilities/cmlibuv')
-rw-r--r--Utilities/cmlibuv/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt
index 1b384b5..a8e25ba 100644
--- a/Utilities/cmlibuv/CMakeLists.txt
+++ b/Utilities/cmlibuv/CMakeLists.txt
@@ -218,8 +218,16 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
)
list(APPEND uv_defines
__EXTENSIONS__
- _XOPEN_SOURCE=500
)
+ if(CMAKE_SYSTEM_VERSION STREQUAL "5.10")
+ list(APPEND uv_defines
+ _XOPEN_SOURCE=500
+ )
+ else()
+ list(APPEND uv_defines
+ _XOPEN_SOURCE=600
+ )
+ endif()
list(APPEND uv_sources
src/unix/sunos.c
)