diff options
author | Dominick Meglio <dcm5151@esu.edu> | 2005-04-05 18:26:55 +0000 |
---|---|---|
committer | Dominick Meglio <dcm5151@esu.edu> | 2005-04-05 18:26:55 +0000 |
commit | ffb4cf555402a7a8ede90fa12e597de8a87cbf5a (patch) | |
tree | 64428a8e57858f70596324d09e44ab246f563d2d /setup.h | |
parent | 784cc294b15482f04cac61f7ff91c9f1e6a409b6 (diff) | |
download | c-ares-ffb4cf555402a7a8ede90fa12e597de8a87cbf5a.tar.gz c-ares-ffb4cf555402a7a8ede90fa12e597de8a87cbf5a.tar.bz2 c-ares-ffb4cf555402a7a8ede90fa12e597de8a87cbf5a.zip |
Provided implementations of inet_net_pton and inet_pton from BIND for systems that do not include these functions. These will be necessary for CIDR support and IPv6 support.
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -89,4 +89,15 @@ struct in6_addr }; #endif +#if defined(HAVE_INET_PTON) && defined(HAVE_INET_PTON_IPV6) +#define ares_inet_pton(x,y,z) inet_pton(x,y,z) +#else +int ares_inet_pton(int af, const char *src, void *dst); +#endif +#if defined(HAVE_INET_NET_PTON) && defined(HAVE_INET_NET_PTON_IPV6) +#define ares_inet_net_pton(w,x,y,z) inet_net_pton(w,x,y,z) +#else +int ares_inet_net_pton(int af, const char *src, void *dst, unsigned int size); +#endif + #endif /* ARES_SETUP_H */ |