diff --git a/ares/ares__get_hostent.c b/ares/ares__get_hostent.c
index 29df0dd98c1edac7d0cf68ca89dd371a5afebe0d..ca6f2f1c02c5ee1e7a131e5bf4c25c1e83c7b977 100644
--- a/ares/ares__get_hostent.c
+++ b/ares/ares__get_hostent.c
@@ -30,6 +30,7 @@
 
 #include "ares.h"
 #include "ares_private.h"
+#include "inet_net_pton.h"
 
 int ares__get_hostent(FILE *fp, int family, struct hostent **host)
 {