Skip to content

Commit 54fa884

Browse files
committed
Fix detection of netinet/tcp.h on Cygwin.
1 parent 1b90919 commit 54fa884

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: cmake/configure.cmake

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ check_function_exists(memset HAVE_MEMSET)
4646

4747
check_include_files(netdb.h HAVE_NETDB_H)
4848
check_include_files(netinet/in.h HAVE_NETINET_IN_H)
49-
check_include_files(netinet/tcp.h HAVE_NETINET_TCP_H)
49+
if (CYGWIN)
50+
check_include_files("sys/types.h;netinet/tcp.h" HAVE_NETINET_TCP_H)
51+
else ()
52+
check_include_files(netinet/tcp.h HAVE_NETINET_TCP_H)
53+
endif ()
5054
check_include_files(linux/tcp.h HAVE_LINUX_TCP_H)
5155
check_include_files(net/if.h HAVE_NET_IF_H)
5256
check_include_files(pcre.h HAVE_PCRE_H)

0 commit comments

Comments
 (0)