From 1ff9793deee907efcbd4769fe99e133a9608a5f6 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Fri, 2 Aug 2024 22:18:05 +0200 Subject: 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 --- apps/nc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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() set(NC_SRC ${NC_SRC} compat/accept4.c) endif() -check_function_exists(readpassphrase HAVE_READPASSPHRASE) +check_symbol_exists(readpassphrase "readpassphrase.h" HAVE_READPASSPHRASE) if(HAVE_READPASSPHRASE) add_definitions(-DHAVE_READPASSPHRASE) else() -- cgit v1.2.3-55-g6feb