cmake: fix net/in.h detection for MS-DOS

Syncing this with autotools.

Follow-up to 8e34505776 #15164
Closes #15869
This commit is contained in:
Viktor Szakats 2024-12-30 23:48:09 +01:00
parent 10fe952da0
commit 4badbbeb5b
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View 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)