aboutsummaryrefslogtreecommitdiff
path: root/ares/inet_net_pton.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/inet_net_pton.c')
-rw-r--r--ares/inet_net_pton.c3
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);