diff options
author | Yang Tse <yangsita@gmail.com> | 2007-11-15 19:44:01 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-11-15 19:44:01 +0000 |
commit | ca95f58ac0d5c9cc8f56517917af8b83248777f7 (patch) | |
tree | b8dc0e3d9ef21e7fdc85404d42e858822101e381 /ares/ares_ipv6.h | |
parent | ed636cbe4482e20bee084f2f83df494babb4defd (diff) |
Needed now that in6_addr is referenced in ares.h
Diffstat (limited to 'ares/ares_ipv6.h')
-rw-r--r-- | ares/ares_ipv6.h | 10 |
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 |