mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
libuv: Compile as C11 on all Solaris versions
Using `_XOPEN_SOURCE=600` on Solaris 5.10, as we do on Solaris 5.11+ already, allows the system headers to be included in C99 and C11 modes.
This commit is contained in:
@@ -1762,8 +1762,6 @@ else
|
||||
libs="${libs} -lkvm"
|
||||
;;
|
||||
*SunOS*)
|
||||
# Normally libuv uses '-D_XOPEN_SOURCE=500 -std=c90' on Solaris 5.10,
|
||||
# but we do not need to do that because we bootstrap using POSIX APIs.
|
||||
uv_c_flags="${uv_c_flags} -D__EXTENSIONS__ -D_XOPEN_SOURCE=600"
|
||||
libs="${libs} -lkstat -lnsl -lsendfile -lsocket -lrt"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user