Skip to content

Commit 86481f1

Browse files
committed
cmake UPDATE clarify solaris compat
1 parent c08ec00 commit 86481f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ endif()
342342
use_compat()
343343

344344
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
345+
# required for some extensions on Solaris (e.g. strndup), see man 7 standards, section "Feature Test Macros"
346+
# https://docs.oracle.com/cd/E88353_01/html/E37853/posix-7.html
345347
add_compile_definitions(__EXTENSIONS__)
346348
endif()
347349

0 commit comments

Comments
 (0)