mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user