summaryrefslogtreecommitdiff
path: root/ares_ipv6.h
diff options
context:
space:
mode:
Diffstat (limited to 'ares_ipv6.h')
-rw-r--r--ares_ipv6.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ares_ipv6.h b/ares_ipv6.h
index afc9832..6ffa2f3 100644
--- a/ares_ipv6.h
+++ b/ares_ipv6.h
@@ -21,11 +21,13 @@
#define PF_INET6 AF_INET6
#endif
-#ifndef HAVE_STRUCT_IN6_ADDR
-struct in6_addr
-{
- unsigned char s6_addr[16];
+#ifndef s6_addr
+struct in6_addr {
+ union {
+ unsigned char _S6_u8[16];
+ } _S6_un;
};
+#define s6_addr _S6_un._S6_u8
#endif
#ifndef HAVE_STRUCT_SOCKADDR_IN6