diff options
author | Theo Buehler <tb@openbsd.org> | 2024-08-02 07:32:01 -0600 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-08-02 07:32:01 -0600 |
commit | 161984f56f2953ebedc1a97056e4fd9cb938d672 (patch) | |
tree | c9d3b06749c40867ccdc76740238f8dc75ea95d7 /tests | |
parent | 73ba2f055709f60f33dbc1548020edb3b9174048 (diff) | |
download | portable-161984f56f2953ebedc1a97056e4fd9cb938d672.tar.gz portable-161984f56f2953ebedc1a97056e4fd9cb938d672.tar.bz2 portable-161984f56f2953ebedc1a97056e4fd9cb938d672.zip |
Use check_symbol_exists() rather than check_function_exists()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
676 | # Emscripten does not support socketpair syscall. | 676 | # Emscripten does not support socketpair syscall. |
677 | if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN)) | 677 | if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN)) |
678 | set(SIGNERTEST_SRC signertest.c) | 678 | set(SIGNERTEST_SRC signertest.c) |
679 | check_function_exists(pipe2 HAVE_PIPE2) | 679 | check_symbol_exists(pipe2 "fcntl.h unistd.h" HAVE_PIPE2) |
680 | if(HAVE_PIPE2) | 680 | if(HAVE_PIPE2) |
681 | add_definitions(-DHAVE_PIPE2) | 681 | add_definitions(-DHAVE_PIPE2) |
682 | else() | 682 | else() |
@@ -792,7 +792,7 @@ add_platform_test(tlslegacytest tlslegacytest) | |||
792 | # Emscripten does not support socketpair syscall. | 792 | # Emscripten does not support socketpair syscall. |
793 | if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN)) | 793 | if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN)) |
794 | set(TLSTEST_SRC tlstest.c) | 794 | set(TLSTEST_SRC tlstest.c) |
795 | check_function_exists(pipe2 HAVE_PIPE2) | 795 | check_symbol_exists(pipe2 "fcntl.h unistd.h" HAVE_PIPE2) |
796 | if(HAVE_PIPE2) | 796 | if(HAVE_PIPE2) |
797 | add_definitions(-DHAVE_PIPE2) | 797 | add_definitions(-DHAVE_PIPE2) |
798 | else() | 798 | else() |