From f85dcaa6d277f712df9bc33ac3f27af74a2d6594 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 30 Sep 2023 10:35:26 +0000 Subject: [PATCH] cmake: detect `sys/wait.h` and `netinet/udp.h` Ref: #11964 (effort to sync cmake detections with autotools) Closes #11996 --- CMake/Platforms/WindowsCache.cmake | 2 ++ CMakeLists.txt | 2 ++ lib/curl_config.h.cmake | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/CMake/Platforms/WindowsCache.cmake b/CMake/Platforms/WindowsCache.cmake index 39cefd0545..5aa7dbabe6 100644 --- a/CMake/Platforms/WindowsCache.cmake +++ b/CMake/Platforms/WindowsCache.cmake @@ -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) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f1558d6de..1795b2a710 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index ae137c0349..0bfb457969 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -398,6 +398,9 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_NETINET_TCP_H 1 +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_NETINET_UDP_H 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_LINUX_TCP_H 1 @@ -536,6 +539,9 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SYS_FILIO_H 1 +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_WAIT_H 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SYS_IOCTL_H 1 -- 2.47.3