1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2026-03-21 00:09:48 +00:00

prevent NS_IN6ADDRSZ from getting set to zero if the struct doesn't exist

This commit is contained in:
Daniel Stenberg
2005-05-11 06:47:09 +00:00
parent f09adbcbc2
commit 05d8fa0a57

View File

@ -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