Skip to content
Snippets Groups Projects
Commit e5ec5c28 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent a90e33ad
No related branches found
No related tags found
No related merge requests found
...@@ -29,8 +29,13 @@ struct in6_addr ...@@ -29,8 +29,13 @@ struct in6_addr
#endif #endif
#ifndef NS_IN6ADDRSZ #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 #define NS_IN6ADDRSZ SIZEOF_STRUCT_IN6_ADDR
#endif #endif
#endif
#ifndef NS_INADDRSZ #ifndef NS_INADDRSZ
#define NS_INADDRSZ SIZEOF_STRUCT_IN_ADDR #define NS_INADDRSZ SIZEOF_STRUCT_IN_ADDR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment