From: Xiang Xiao Date: Sun, 9 Oct 2022 22:54:59 +0000 (+0800) Subject: cmake: add the check of HAVE_SOCKETPAIR X-Git-Tag: curl-7_86_0~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d91c736f6c832d61c61cf407213c3c6f3b58d767;p=thirdparty%2Fcurl.git cmake: add the check of HAVE_SOCKETPAIR which is used by Curl_socketpair Signed-off-by: Xiang Xiao Closes #9686 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cb9837509..d3b4fc7564 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1014,6 +1014,7 @@ endif() check_symbol_exists(fchmod "${CURL_INCLUDES}" HAVE_FCHMOD) check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME) check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET) +check_symbol_exists(socketpair "${CURL_INCLUDES}" HAVE_SOCKETPAIR) check_symbol_exists(recv "${CURL_INCLUDES}" HAVE_RECV) check_symbol_exists(send "${CURL_INCLUDES}" HAVE_SEND) check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT) diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index 3f7eb3c5db..5ac20dff0b 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -457,6 +457,9 @@ /* Define to 1 if you have the `socket' function. */ #cmakedefine HAVE_SOCKET 1 +/* Define to 1 if you have the socketpair function. */ +#cmakedefine HAVE_SOCKETPAIR 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SSL_H 1