aboutsummaryrefslogtreecommitdiff
path: root/apps/nc
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2024-08-02 22:18:05 +0200
committerTheo Buehler <tb@openbsd.org>2024-08-21 15:56:28 +0200
commit1ff9793deee907efcbd4769fe99e133a9608a5f6 (patch)
treec0552595179bcf365633da0503b4c5ba5b6cc191 /apps/nc
parent3b545a08d6c14d67b6d1bead1e963391571b5182 (diff)
downloadportable-1ff9793deee907efcbd4769fe99e133a9608a5f6.tar.gz
portable-1ff9793deee907efcbd4769fe99e133a9608a5f6.tar.bz2
portable-1ff9793deee907efcbd4769fe99e133a9608a5f6.zip
Switch to check_symbol_exists() in simplest cases
There are a few exceptions. Some require _GNU_SOURCE, some are in the weird strings.h header, some are probably too new to be found in the standard locations. Fixes #1077
Diffstat (limited to 'apps/nc')
-rw-r--r--apps/nc/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt
index 7bbdb02..d5f7813 100644
--- a/apps/nc/CMakeLists.txt
+++ b/apps/nc/CMakeLists.txt
@@ -22,7 +22,7 @@ else()
22 set(NC_SRC ${NC_SRC} compat/accept4.c) 22 set(NC_SRC ${NC_SRC} compat/accept4.c)
23endif() 23endif()
24 24
25check_function_exists(readpassphrase HAVE_READPASSPHRASE) 25check_symbol_exists(readpassphrase "readpassphrase.h" HAVE_READPASSPHRASE)
26if(HAVE_READPASSPHRASE) 26if(HAVE_READPASSPHRASE)
27 add_definitions(-DHAVE_READPASSPHRASE) 27 add_definitions(-DHAVE_READPASSPHRASE)
28else() 28else()