From 74f7d2044181abba0543dd02e6b83de7e8ff5c42 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Tue, 24 Nov 2015 07:27:30 +0100 Subject: [PATCH] autotools: detect IPV6 support on Windows The detection in configure.ac includes netinet/in.h, for linux, but this header file does not exist on Windows. So guard this header. Signed-off-by: Cedric BAIL --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0f7c83aee1..5c46f8ff5b 100644 --- a/configure.ac +++ b/configure.ac @@ -2625,7 +2625,9 @@ AC_CHECK_TYPES([struct ipv6_mreq], [have_ipv6="yes"], [have_ipv6="no"], [[ -#include +#ifdef HAVE_NETINET_IN_H +# include +#endif #ifdef HAVE_WS2TCPIP_H # include #endif