summaryrefslogtreecommitdiff
path: root/inet_net_pton.c
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.c
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.c')
-rw-r--r--inet_net_pton.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/inet_net_pton.c b/inet_net_pton.c
index 0936aa1..a3e9338 100644
--- a/inet_net_pton.c
+++ b/inet_net_pton.c
@@ -46,8 +46,7 @@
#include "ares_ipv6.h"
#include "inet_net_pton.h"
-#if !defined(HAVE_INET_NET_PTON) || !defined(HAVE_INET_NET_PTON_IPV6) || \
- !defined(HAVE_INET_PTON) || !defined(HAVE_INET_PTON_IPV6)
+#if !defined(HAVE_INET_NET_PTON) || !defined(HAVE_INET_NET_PTON_IPV6)
/*
* static int
@@ -424,7 +423,7 @@ ares_inet_net_pton(int af, const char *src, void *dst, size_t size)
#endif
-#if !defined(HAVE_INET_PTON) || !defined(HAVE_INET_PTON_IPV6)
+#ifndef HAVE_INET_PTON
int ares_inet_pton(int af, const char *src, void *dst)
{
int size, result;