changeset 13428:79c2062a6582

ipv6: fix detection under mingw 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>
author Giuseppe Scrivano <gscrivano@gnu.org>
date Tue, 15 Jun 2010 16:56:42 +0200
parents 727e17a1e8b3
children 200c7888713e
files ChangeLog m4/sockpfaf.m4
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/m4/sockpfaf.m4
+++ b/m4/sockpfaf.m4
@@ -47,6 +47,9 @@
 #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;]])],