summaryrefslogtreecommitdiff
path: root/inet_net_pton.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-06 14:11:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-06 14:11:50 +0000
commit81d004241412d786c5353bd0ad9a006ad19912c1 (patch)
tree298ad275bbe0e1758594159384e1922e5225e476 /inet_net_pton.h
parente10e4843c6646c10790d857ce3ed63af6fc3e1ab (diff)
downloadc-ares-81d004241412d786c5353bd0ad9a006ad19912c1.tar.gz
c-ares-81d004241412d786c5353bd0ad9a006ad19912c1.tar.bz2
c-ares-81d004241412d786c5353bd0ad9a006ad19912c1.zip
check for struct sizes and use those sizes if the NS_* defines are lacking
(IRIX 6.5.22 it seems)
Diffstat (limited to 'inet_net_pton.h')
-rw-r--r--inet_net_pton.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/inet_net_pton.h b/inet_net_pton.h
index 5e08208..a7b4074 100644
--- a/inet_net_pton.h
+++ b/inet_net_pton.h
@@ -39,4 +39,16 @@ int ares_inet_pton(int af, const char *src, void *dst);
int ares_inet_net_pton(int af, const char *src, void *dst, size_t size);
#endif
+#ifndef NS_IN6ADDRSZ
+#define NS_IN6ADDRSZ SIZEOF_STRUCT_IN6_ADDR
+#endif
+
+#ifndef NS_INADDRSZ
+#define NS_INADDRSZ SIZEOF_STRUCT_IN_ADDR
+#endif
+
+#ifndef NS_INT16SZ
+#define NS_INT16SZ 2
+#endif
+
#endif /* INET_NET_PTON_H */