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:
Eric Berge
2016-12-21 15:38:28 -06:00
parent ba8bb32162
commit b7f0b1240f

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
)