projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90e33a
)
prevent NS_IN6ADDRSZ from getting set to zero if the struct doesn't exist
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 11 May 2005 06:47:09 +0000
(06:47 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 11 May 2005 06:47:09 +0000
(06:47 +0000)
ares/ares_ipv6.h
patch
|
blob
|
history
diff --git
a/ares/ares_ipv6.h
b/ares/ares_ipv6.h
index 28bc5ee278e63e73e763db2a5282e67869e8f003..3a5bd069954f4cffa122033ed125e60dbcae7656 100644
(file)
--- 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