From ba26c3fb2252d23f9287b659569698476a06abcf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 6 Apr 2005 14:11:50 +0000 Subject: check for struct sizes and use those sizes if the NS_* defines are lacking (IRIX 6.5.22 it seems) --- ares/inet_net_pton.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ares/inet_net_pton.h') diff --git a/ares/inet_net_pton.h b/ares/inet_net_pton.h index 5e0820814..a7b407458 100644 --- a/ares/inet_net_pton.h +++ b/ares/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 */ -- cgit v1.2.3