summaryrefslogtreecommitdiff
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
commite5ec5c284fa47fa7c001c2971a810a7f0305ca56 (patch)
treee7b993718ab51cf0a134a71dfcb8ed6d141ea975
parenta90e33ad713a9a6308b3344a928001f0b1eae645 (diff)
downloadcurl-e5ec5c284fa47fa7c001c2971a810a7f0305ca56.tar.gz
prevent NS_IN6ADDRSZ from getting set to zero if the struct doesn't exist
-rw-r--r--ares/ares_ipv6.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ares/ares_ipv6.h b/ares/ares_ipv6.h
index 28bc5ee27..3a5bd0699 100644
--- a/ares/ares_ipv6.h
+++ b/ares/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