From 161984f56f2953ebedc1a97056e4fd9cb938d672 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Fri, 2 Aug 2024 07:32:01 -0600 Subject: Use check_symbol_exists() rather than check_function_exists() --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d81d012..f79f69e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -676,7 +676,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_function_exists(pipe2 HAVE_PIPE2) + check_symbol_exists(pipe2 "fcntl.h unistd.h" HAVE_PIPE2) if(HAVE_PIPE2) add_definitions(-DHAVE_PIPE2) else() @@ -792,7 +792,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_function_exists(pipe2 HAVE_PIPE2) + check_symbol_exists(pipe2 "fcntl.h unistd.h" HAVE_PIPE2) if(HAVE_PIPE2) add_definitions(-DHAVE_PIPE2) else() -- cgit v1.2.3-55-g6feb