diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c index 7a4aad6e30..336481db54 100644 --- a/ares/ares_gethostbyname.c +++ b/ares/ares_gethostbyname.c @@ -215,7 +215,7 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac const char *p; for (p = name; *p; p++) { - if (!isdigit(*p) && *p != '.') { + if (!ISDIGIT(*p) && *p != '.') { return 0; } else if (*p == '.') { numdots++; diff --git a/ares/ares_process.c b/ares/ares_process.c index 611d24d484..0a133a27fb 100644 --- a/ares/ares_process.c +++ b/ares/ares_process.c @@ -44,6 +44,7 @@ #include #endif +#include #include #include #include