[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] ipv6: fix detection under mingw
From: |
Giuseppe Scrivano |
Subject: |
[PATCH] ipv6: fix detection under mingw |
Date: |
Tue, 15 Jun 2010 16:56:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
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 <address@hidden>
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 <address@hidden>
+
+ ipv6: fix detection under mingw
+ * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
+ in6_addr.
+
2010-06-15 Bruno Haible <address@hidden>
* 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
- [PATCH] ipv6: fix detection under mingw,
Giuseppe Scrivano <=