diff options
author | Theo Buehler <tb@openbsd.org> | 2024-08-02 22:18:05 +0200 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-08-21 15:56:28 +0200 |
commit | 1ff9793deee907efcbd4769fe99e133a9608a5f6 (patch) | |
tree | c0552595179bcf365633da0503b4c5ba5b6cc191 /apps | |
parent | 3b545a08d6c14d67b6d1bead1e963391571b5182 (diff) | |
download | portable-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')
-rw-r--r-- | apps/nc/CMakeLists.txt | 2 |
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) |
23 | endif() | 23 | endif() |
24 | 24 | ||
25 | check_function_exists(readpassphrase HAVE_READPASSPHRASE) | 25 | check_symbol_exists(readpassphrase "readpassphrase.h" HAVE_READPASSPHRASE) |
26 | if(HAVE_READPASSPHRASE) | 26 | if(HAVE_READPASSPHRASE) |
27 | add_definitions(-DHAVE_READPASSPHRASE) | 27 | add_definitions(-DHAVE_READPASSPHRASE) |
28 | else() | 28 | else() |