summaryrefslogtreecommitdiff
path: root/inet_net_pton.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-24 19:13:01 +0000
committerYang Tse <yangsita@gmail.com>2008-09-24 19:13:01 +0000
commit5ca18d6d80297fc0379c5d5bbee9557c5c43fe8f (patch)
treeb7055acabf0a9a32d52468edccb246c77c4de6fe /inet_net_pton.h
parenta08ee8a0bed9d6e55beec8cfb735937735c4a417 (diff)
downloadc-ares-5ca18d6d80297fc0379c5d5bbee9557c5c43fe8f.tar.gz
c-ares-5ca18d6d80297fc0379c5d5bbee9557c5c43fe8f.tar.bz2
c-ares-5ca18d6d80297fc0379c5d5bbee9557c5c43fe8f.zip
HAVE_INET_PTON will only be defined when an IPv6 capable working
inet_pton function is available.
Diffstat (limited to 'inet_net_pton.h')
-rw-r--r--inet_net_pton.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet_net_pton.h b/inet_net_pton.h
index 0f45460..f5642a5 100644
--- a/inet_net_pton.h
+++ b/inet_net_pton.h
@@ -18,7 +18,7 @@
* without express or implied warranty.
*/
-#if defined(HAVE_INET_PTON) && defined(HAVE_INET_PTON_IPV6)
+#ifdef HAVE_INET_PTON
#define ares_inet_pton(x,y,z) inet_pton(x,y,z)
#else
int ares_inet_pton(int af, const char *src, void *dst);