libuv: Compile as C 90 on Solaris 10

This commit is contained in:
Brad King
2017-02-27 09:37:39 -05:00
parent c9b3c5625a
commit e4ac7c2b4f

View File

@@ -224,6 +224,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
list(APPEND uv_defines
_XOPEN_SOURCE=500
)
if(CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 90)
endif()
else()
list(APPEND uv_defines
_XOPEN_SOURCE=600