Hello, this small patch fixes the detection of IPv6 under mingw. The header <ws2tcpip.h> is already used by <sys/socket.h>.
Cheers, Giuseppe >From f07f37a7ec475a1eab35a329ee528c0d24c70ae3 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano <gscriv...@gnu.org> Date: Tue, 15 Jun 2010 16:45:15 +0200 Subject: [PATCH] ipv6: fix detection under mingw * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct in6_addr. --- ChangeLog | 6 ++++++ m4/sockpfaf.m4 | 3 +++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5570b81..334d0e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-06-15 Giuseppe Scrivano <gscriv...@gnu.org> + + ipv6: fix detection under mingw + * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct + in6_addr. + 2010-06-15 Bruno Haible <br...@clisp.org> * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD. diff --git a/m4/sockpfaf.m4 b/m4/sockpfaf.m4 index 8a0c236..8806705 100644 --- a/m4/sockpfaf.m4 +++ b/m4/sockpfaf.m4 @@ -47,6 +47,9 @@ AC_DEFUN([gl_SOCKET_FAMILIES], #endif #ifdef HAVE_WINSOCK2_H #include <winsock2.h> +#endif +#ifdef HAVE_WS2TCPIP_H +#include <ws2tcpip.h> #endif]], [[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; if (&x && &y && &z) return 0;]])], -- 1.7.1