# HG changeset patch # User Giuseppe Scrivano # Date 1276613802 -7200 # Node ID 79c2062a6582500a9e10954b46fa62dd1c2874f9 # Parent 727e17a1e8b3acba1a868d905a2c3e1d09ce052d ipv6: fix detection under mingw this small patch fixes the detection of IPv6 under mingw. The header is already used by . * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include for struct in6_addr. Signed-off-by: Eric Blake diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-06-15 Giuseppe Scrivano + + ipv6: fix detection under mingw + * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include for struct + in6_addr. + 2010-06-14 Ben Pfaff * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code. Assume diff --git a/m4/sockpfaf.m4 b/m4/sockpfaf.m4 --- a/m4/sockpfaf.m4 +++ b/m4/sockpfaf.m4 @@ -47,6 +47,9 @@ #endif #ifdef HAVE_WINSOCK2_H #include +#endif +#ifdef HAVE_WS2TCPIP_H +#include #endif]], [[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; if (&x && &y && &z) return 0;]])],