summaryrefslogtreecommitdiff
path: root/ares_ipv6.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-11 06:47:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-11 06:47:09 +0000
commit05d8fa0a57f86554a1f52d6f6874fbe34c2165df (patch)
tree645511d4defd5ef708534286b1c6070915d60860 /ares_ipv6.h
parentf09adbcbc23da83e5aa1b6600508f8638cc23558 (diff)
downloadc-ares-05d8fa0a57f86554a1f52d6f6874fbe34c2165df.tar.gz
c-ares-05d8fa0a57f86554a1f52d6f6874fbe34c2165df.tar.bz2
c-ares-05d8fa0a57f86554a1f52d6f6874fbe34c2165df.zip
prevent NS_IN6ADDRSZ from getting set to zero if the struct doesn't exist
Diffstat (limited to 'ares_ipv6.h')
-rw-r--r--ares_ipv6.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ares_ipv6.h b/ares_ipv6.h
index 28bc5ee..3a5bd06 100644
--- a/ares_ipv6.h
+++ b/ares_ipv6.h
@@ -29,8 +29,13 @@ struct in6_addr
#endif
#ifndef NS_IN6ADDRSZ
+#if SIZEOF_STRUCT_IN6_ADDR == 0
+/* We cannot have it set to zero, so we pick a fixed value here */
+#define NS_IN6ADDRSZ 16
+#else
#define NS_IN6ADDRSZ SIZEOF_STRUCT_IN6_ADDR
#endif
+#endif
#ifndef NS_INADDRSZ
#define NS_INADDRSZ SIZEOF_STRUCT_IN_ADDR