From: Bernhard Walle Date: Sun, 27 May 2018 08:38:07 +0000 (+0200) Subject: cmake: check for getpwuid_r X-Git-Tag: curl-7_61_0~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=645948dffb363da05b2fe26e291b82f9172bab77;p=thirdparty%2Fcurl.git cmake: check for getpwuid_r The autotools-based build system does it, so we do it also in CMake. Bug: #2609 Signed-off-by: Bernhard Walle --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 685faf9340..b85e1f58d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -850,6 +850,7 @@ check_symbol_exists(sigsetjmp "${CURL_INCLUDES}" HAVE_SIGSETJMP) check_symbol_exists(getpass_r "${CURL_INCLUDES}" HAVE_GETPASS_R) check_symbol_exists(strlcat "${CURL_INCLUDES}" HAVE_STRLCAT) check_symbol_exists(getpwuid "${CURL_INCLUDES}" HAVE_GETPWUID) +check_symbol_exists(getpwuid_r "${CURL_INCLUDES}" HAVE_GETPWUID_R) check_symbol_exists(geteuid "${CURL_INCLUDES}" HAVE_GETEUID) check_symbol_exists(utime "${CURL_INCLUDES}" HAVE_UTIME) check_symbol_exists(gmtime_r "${CURL_INCLUDES}" HAVE_GMTIME_R) diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index 4b12083f29..a890d8ce62 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -235,6 +235,9 @@ /* Define to 1 if you have the `getpwuid' function. */ #cmakedefine HAVE_GETPWUID 1 +/* Define to 1 if you have the `getpwuid_r' function. */ +#cmakedefine HAVE_GETPWUID_R 1 + /* Define to 1 if you have the `getrlimit' function. */ #cmakedefine HAVE_GETRLIMIT 1