diff options
author | Yang Tse <yangsita@gmail.com> | 2010-03-05 20:01:47 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-03-05 20:01:47 +0000 |
commit | 21f331ead265b1f02ae14fd03e9af53ea5b7bd55 (patch) | |
tree | 9fdbad31d74347d11a34d0121fd9b840dd5e1413 /ares/inet_net_pton.c | |
parent | f9337470882125288606676534e701c71fc1014b (diff) |
Added IPv6 name servers support
Diffstat (limited to 'ares/inet_net_pton.c')
-rw-r--r-- | ares/inet_net_pton.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ares/inet_net_pton.c b/ares/inet_net_pton.c index 1e278a793..9c4717ab1 100644 --- a/ares/inet_net_pton.c +++ b/ares/inet_net_pton.c @@ -43,6 +43,7 @@ #include <string.h> #include <stdlib.h> +#include "ares.h" #include "ares_ipv6.h" #include "inet_net_pton.h" @@ -432,7 +433,7 @@ int ares_inet_pton(int af, const char *src, void *dst) if (af == AF_INET) size = sizeof(struct in_addr); else if (af == AF_INET6) - size = sizeof(struct in6_addr); + size = sizeof(struct ares_in6_addr); else { SET_ERRNO(EAFNOSUPPORT); |