Skip to content

Commit

Permalink
Land #1102 - fix syslog_r and pipe2 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
botovq committed Oct 2, 2024
2 parents 582d50b + 69c26f3 commit 8bc62b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ if(HAVE_GETPROGNAME)
add_definitions(-DHAVE_GETPROGNAME)
endif()

check_symbol_exists(syslog_r "syslog.h" "stdarg.h" HAVE_SYSLOG_R)
check_symbol_exists(syslog_r "syslog.h;stdarg.h" HAVE_SYSLOG_R)
if(HAVE_SYSLOG_R)
add_definitions(-DHAVE_SYSLOG_R)
endif()
Expand Down
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ set_tests_properties(shutdowntest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_D
# Emscripten does not support socketpair syscall.
if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN))
set(SIGNERTEST_SRC signertest.c)
check_symbol_exists(pipe2 "fcntl.h unistd.h" HAVE_PIPE2)
check_symbol_exists(pipe2 "fcntl.h;unistd.h" HAVE_PIPE2)
if(HAVE_PIPE2)
add_definitions(-DHAVE_PIPE2)
else()
Expand Down Expand Up @@ -809,7 +809,7 @@ add_platform_test(tlslegacytest tlslegacytest)
# Emscripten does not support socketpair syscall.
if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN))
set(TLSTEST_SRC tlstest.c)
check_symbol_exists(pipe2 "fcntl.h unistd.h" HAVE_PIPE2)
check_symbol_exists(pipe2 "fcntl.h;unistd.h" HAVE_PIPE2)
if(HAVE_PIPE2)
add_definitions(-DHAVE_PIPE2)
else()
Expand Down

0 comments on commit 8bc62b8

Please sign in to comment.