diff options
author | Yang Tse <yangsita@gmail.com> | 2010-12-15 02:08:46 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-12-15 02:22:04 +0100 |
commit | 623f3cb5316dcbe5f0419efae772995643181f3a (patch) | |
tree | 2855f1e05398507eb0458f634e1345e5ecd02062 /inet_net_pton.c | |
parent | b2dafb6974da4f3b80dda3bd343989157d8c36a0 (diff) | |
download | c-ares-623f3cb5316dcbe5f0419efae772995643181f3a.tar.gz c-ares-623f3cb5316dcbe5f0419efae772995643181f3a.tar.bz2 c-ares-623f3cb5316dcbe5f0419efae772995643181f3a.zip |
configure: inet_net_pton function check adjustments
Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
capable and is not affected by the WLB-2008080064 advisory.
HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
Diffstat (limited to 'inet_net_pton.c')
-rw-r--r-- | inet_net_pton.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inet_net_pton.c b/inet_net_pton.c index 0b2accf..d9165e7 100644 --- a/inet_net_pton.c +++ b/inet_net_pton.c @@ -50,7 +50,7 @@ const struct ares_in6_addr ares_in6addr_any = { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }; -#if !defined(HAVE_INET_NET_PTON) || !defined(HAVE_INET_NET_PTON_IPV6) +#ifndef HAVE_INET_NET_PTON /* * static int @@ -425,7 +425,7 @@ ares_inet_net_pton(int af, const char *src, void *dst, size_t size) } } -#endif +#endif /* HAVE_INET_NET_PTON */ #ifndef HAVE_INET_PTON int ares_inet_pton(int af, const char *src, void *dst) @@ -447,4 +447,4 @@ int ares_inet_pton(int af, const char *src, void *dst) return 0; return (result > -1 ? 1 : -1); } -#endif +#endif /* HAVE_INET_PTON */ |