sunos,cmake: use thread-safe errno
On illumos, the global errno variable is not thread-safe by default, requiring that the application be built with gcc's -pthread option, or that it defines -D_REENTRANT. This was done already for the autotools build, but not for CMake. PR-URL: https://github.com/libuv/libuv/pull/3243 Reviewed-By: Jameson Nash <vtjnash@gmail.com>
This commit is contained in:
parent
5fe597268e
commit
7b18d0aa15
@ -325,7 +325,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "OS400")
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
||||
list(APPEND uv_defines __EXTENSIONS__ _XOPEN_SOURCE=500)
|
||||
list(APPEND uv_defines __EXTENSIONS__ _XOPEN_SOURCE=500 _REENTRANT)
|
||||
list(APPEND uv_libraries kstat nsl sendfile socket)
|
||||
list(APPEND uv_sources
|
||||
src/unix/no-proctitle.c
|
||||
|
||||
Loading…
Reference in New Issue
Block a user