diff options
author | Brent Cook <busterb@gmail.com> | 2024-10-01 04:00:46 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2024-10-01 04:00:46 -0500 |
commit | c169d7e61e39cfdb836e1b0af3618af514defec5 (patch) | |
tree | 50fe504816d229da2fbab630ea040625dae69558 /apps | |
parent | c04ca241de17cb5a9f69dfbae7bee2ee49700a40 (diff) | |
parent | 1ff9793deee907efcbd4769fe99e133a9608a5f6 (diff) | |
download | portable-c169d7e61e39cfdb836e1b0af3618af514defec5.tar.gz portable-c169d7e61e39cfdb836e1b0af3618af514defec5.tar.bz2 portable-c169d7e61e39cfdb836e1b0af3618af514defec5.zip |
Land #1079, Switch to check_symbol_exists() for simple cases
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() |