diff --git a/ares/setup.h b/ares/setup.h
index c3f2a8b520533bd155ec8b45b484acf17defd995..20e1206b44a4d17a0ff9f0cc796ec129c802f3d3 100644
--- a/ares/setup.h
+++ b/ares/setup.h
@@ -97,7 +97,7 @@ int ares_inet_pton(int af, const char *src, void *dst);
 #if defined(HAVE_INET_NET_PTON) && defined(HAVE_INET_NET_PTON_IPV6)
 #define ares_inet_net_pton(w,x,y,z) inet_net_pton(w,x,y,z)
 #else
-int ares_inet_net_pton(int af, const char *src, void *dst, unsigned int size);
+int ares_inet_net_pton(int af, const char *src, void *dst, size_t size);
 #endif
 
 #endif /* ARES_SETUP_H */