]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: add the check of HAVE_SOCKETPAIR
authorXiang Xiao <xiaoxiang@xiaomi.com>
Sun, 9 Oct 2022 22:54:59 +0000 (06:54 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Oct 2022 21:23:22 +0000 (23:23 +0200)
which is used by Curl_socketpair

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Closes #9686

CMakeLists.txt
lib/curl_config.h.cmake

index 4cb98375093ff0999e9e752ef1d1b979d800d15e..d3b4fc7564c0855a9b256f410020827ac411e285 100644 (file)
@@ -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)
index 3f7eb3c5db4c6abc0837518a37b5926040df1a98..5ac20dff0bc05f57175f630a8d71a80abf1d9afc 100644 (file)
 /* 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 <ssl.h> header file. */
 #cmakedefine HAVE_SSL_H 1