aboutsummaryrefslogtreecommitdiff
path: root/ares/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
commit4d437416daee0f626988b8c056ae9cd22486c655 (patch)
treefa0c53d82e00e6ba7670c3fec8278a6cf773bbe3 /ares/inet_net_pton.h
parent267b942383465f8d9ff193e4deaa0d383a09d6b7 (diff)
HAVE_INET_PTON will only be defined when an IPv6 capable working
inet_pton function is available.
Diffstat (limited to 'ares/inet_net_pton.h')
-rw-r--r--ares/inet_net_pton.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/inet_net_pton.h b/ares/inet_net_pton.h
index 0f454602e..f5642a505 100644
--- a/ares/inet_net_pton.h
+++ b/ares/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);