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 | 8627b23715838205403b36858e40807de4a795e1 (patch) | |
tree | 11b095a6176a62d3a913f6350664aa1f3059b1b8 /ares_ipv6.h | |
parent | d9dd2397714b34248888c72ccc448bae1dd7355a (diff) | |
download | c-ares-8627b23715838205403b36858e40807de4a795e1.tar.gz c-ares-8627b23715838205403b36858e40807de4a795e1.tar.bz2 c-ares-8627b23715838205403b36858e40807de4a795e1.zip |
Needed now that in6_addr is referenced in ares.h
Diffstat (limited to 'ares_ipv6.h')
-rw-r--r-- | ares_ipv6.h | 10 |
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 |