summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorDominick Meglio <dcm5151@esu.edu>2005-04-05 18:26:55 +0000
committerDominick Meglio <dcm5151@esu.edu>2005-04-05 18:26:55 +0000
commitffb4cf555402a7a8ede90fa12e597de8a87cbf5a (patch)
tree64428a8e57858f70596324d09e44ab246f563d2d /setup.h
parent784cc294b15482f04cac61f7ff91c9f1e6a409b6 (diff)
downloadc-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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/setup.h b/setup.h
index 3a10745..c3f2a8b 100644
--- a/setup.h
+++ b/setup.h
@@ -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 */