]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: detect `sys/wait.h` and `netinet/udp.h`
authorViktor Szakats <commit@vsz.me>
Sat, 30 Sep 2023 10:35:26 +0000 (10:35 +0000)
committerViktor Szakats <commit@vsz.me>
Sat, 30 Sep 2023 15:17:21 +0000 (15:17 +0000)
Ref: #11964 (effort to sync cmake detections with autotools)

Closes #11996

CMake/Platforms/WindowsCache.cmake
CMakeLists.txt
lib/curl_config.h.cmake

index 39cefd0545ce6a7f01fb60c8f42ea8a645685537..5aa7dbabe614544a5eae3220c881175ab90ffe99 100644 (file)
@@ -64,12 +64,14 @@ if(NOT UNIX)
     set(HAVE_NETDB_H 0)
     set(HAVE_NETINET_IN_H 0)
     set(HAVE_NETINET_TCP_H 0)
+    set(HAVE_NETINET_UDP_H 0)
     set(HAVE_NET_IF_H 0)
     set(HAVE_IOCTL_SIOCGIFADDR 0)
     set(HAVE_POLL_H 0)
     set(HAVE_PWD_H 0)
     set(HAVE_STRINGS_H 0)
     set(HAVE_SYS_FILIO_H 0)
+    set(HAVE_SYS_WAIT_H 0)
     set(HAVE_SYS_IOCTL_H 0)
     set(HAVE_SYS_PARAM_H 0)
     set(HAVE_SYS_POLL_H 0)
index 4f1558d6de0de0fbb4ebf5c7e93de0b32382a2bc..1795b2a71011b6e3dd47b2218ec80fcdd3712990 100644 (file)
@@ -1030,6 +1030,7 @@ endif()
 
 check_include_file_concat("inttypes.h"       HAVE_INTTYPES_H)
 check_include_file_concat("sys/filio.h"      HAVE_SYS_FILIO_H)
+check_include_file_concat("sys/wait.h"       HAVE_SYS_WAIT_H)
 check_include_file_concat("sys/ioctl.h"      HAVE_SYS_IOCTL_H)
 check_include_file_concat("sys/param.h"      HAVE_SYS_PARAM_H)
 check_include_file_concat("sys/poll.h"       HAVE_SYS_POLL_H)
@@ -1054,6 +1055,7 @@ check_include_file_concat("net/if.h"         HAVE_NET_IF_H)
 check_include_file_concat("netdb.h"          HAVE_NETDB_H)
 check_include_file_concat("netinet/in.h"     HAVE_NETINET_IN_H)
 check_include_file_concat("netinet/tcp.h"    HAVE_NETINET_TCP_H)
+check_include_file_concat("netinet/udp.h"    HAVE_NETINET_UDP_H)
 check_include_file("linux/tcp.h"      HAVE_LINUX_TCP_H)
 
 check_include_file_concat("poll.h"           HAVE_POLL_H)
index ae137c0349bd1f02dc2ec34ac1236f0772ce587d..0bfb45796951ae875aaa698f0be41ffa7a1228db 100644 (file)
 /* Define to 1 if you have the <netinet/tcp.h> header file. */
 #cmakedefine HAVE_NETINET_TCP_H 1
 
+/* Define to 1 if you have the <netinet/udp.h> header file. */
+#cmakedefine HAVE_NETINET_UDP_H 1
+
 /* Define to 1 if you have the <linux/tcp.h> header file. */
 #cmakedefine HAVE_LINUX_TCP_H 1
 
 /* Define to 1 if you have the <sys/filio.h> header file. */
 #cmakedefine HAVE_SYS_FILIO_H 1
 
+/* Define to 1 if you have the <sys/wait.h> header file. */
+#cmakedefine HAVE_SYS_WAIT_H 1
+
 /* Define to 1 if you have the <sys/ioctl.h> header file. */
 #cmakedefine HAVE_SYS_IOCTL_H 1