aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_ipv6.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-11-15 19:44:01 +0000
committerYang Tse <yangsita@gmail.com>2007-11-15 19:44:01 +0000
commitca95f58ac0d5c9cc8f56517917af8b83248777f7 (patch)
treeb8dc0e3d9ef21e7fdc85404d42e858822101e381 /ares/ares_ipv6.h
parented636cbe4482e20bee084f2f83df494babb4defd (diff)
Needed now that in6_addr is referenced in ares.h
Diffstat (limited to 'ares/ares_ipv6.h')
-rw-r--r--ares/ares_ipv6.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ares/ares_ipv6.h b/ares/ares_ipv6.h
index afc98320b..6ffa2f375 100644
--- a/ares/ares_ipv6.h
+++ b/ares/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