fix syslog_r and pipe2 detection

This commit is contained in:
Theo Buehler
2024-10-02 12:35:23 +02:00
parent 582d50beeb
commit 69c26f31f2
2 changed files with 3 additions and 3 deletions

View File

@@ -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()

View File

@@ -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()
@@ -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()