ipv6: fix detection under mingw
authorGiuseppe Scrivano <gscrivano@gnu.org>
Tue, 15 Jun 2010 14:56:42 +0000 (16:56 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 15 Jun 2010 21:30:48 +0000 (15:30 -0600)
this small patch fixes the detection of IPv6 under mingw.  The header
<ws2tcpip.h> is already used by <sys/socket.h>.

* m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
in6_addr.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/sockpfaf.m4

index 48b37aa..8fe5099 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       ipv6: fix detection under mingw
+       * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
+       in6_addr.
+
 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
 
        * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
index 8a0c236..8806705 100644 (file)
@@ -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;]])],