diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-24 19:13:01 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-24 19:13:01 +0000 |
commit | 4d437416daee0f626988b8c056ae9cd22486c655 (patch) | |
tree | fa0c53d82e00e6ba7670c3fec8278a6cf773bbe3 /ares/inet_net_pton.c | |
parent | 267b942383465f8d9ff193e4deaa0d383a09d6b7 (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.c')
-rw-r--r-- | ares/inet_net_pton.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ares/inet_net_pton.c b/ares/inet_net_pton.c index 0936aa143..a3e93385a 100644 --- a/ares/inet_net_pton.c +++ b/ares/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; |