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 <cedric@osg.samsung.com>
This commit is contained in:
Vincent Torri 2015-11-24 07:27:30 +01:00 committed by Cedric BAIL
parent 6dcd22711f
commit 74f7d20441
1 changed files with 3 additions and 1 deletions

View File

@ -2625,7 +2625,9 @@ AC_CHECK_TYPES([struct ipv6_mreq],
[have_ipv6="yes"],
[have_ipv6="no"],
[[
#include <netinet/in.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#endif