]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: fix `net/in.h` detection for MS-DOS
authorViktor Szakats <commit@vsz.me>
Mon, 30 Dec 2024 22:48:09 +0000 (23:48 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 31 Dec 2024 10:36:56 +0000 (11:36 +0100)
Syncing this with autotools.

Follow-up to 8e345057761a8f796403923a96f2c8fd3edca647 #15164
Closes #15869

CMakeLists.txt

index f79895d04473f2aff102eed53adcff0ad656d619..d2f8a899c706f7dc03c562a5f54551e9dd5f3116 100644 (file)
@@ -1553,7 +1553,7 @@ check_include_file("io.h"             HAVE_IO_H)
 check_include_file_concat_curl("libgen.h"         HAVE_LIBGEN_H)
 check_include_file("linux/tcp.h"      HAVE_LINUX_TCP_H)
 check_include_file("locale.h"         HAVE_LOCALE_H)
-check_include_file("net/if.h"         HAVE_NET_IF_H)
+check_include_file_concat_curl("net/if.h"         HAVE_NET_IF_H)  # sys/select.h (e.g. MS-DOS/Watt-32)
 check_include_file_concat_curl("netdb.h"          HAVE_NETDB_H)
 check_include_file_concat_curl("netinet/in.h"     HAVE_NETINET_IN_H)
 check_include_file("netinet/in6.h"    HAVE_NETINET_IN6_H)