Merge topic 'solaris-build-fixes'

b7f0b124 libuv requires _XOPEN_SOURCE 600 on Solaris 11
ba8bb321 Disable libuv on Solaris 10
This commit is contained in:
Brad King
2017-01-11 09:58:49 -05:00
committed by CMake Topic Stage
2 changed files with 12 additions and 1 deletions

View File

@@ -510,6 +510,9 @@ int main(void) { return 0; }
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "sparc")
# Disable until it can be ported.
set(CMAKE_USE_LIBUV 0)
elseif(CMAKE_SYSTEM STREQUAL "SunOS-5.10")
# Disable until it can be ported.
set(CMAKE_USE_LIBUV 0)
endif()
endif()
if(CMAKE_USE_LIBUV)

View File

@@ -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
)