diff options
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_gethostbyname.c | 2 | ||||
-rw-r--r-- | ares/ares_process.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c index 7a4aad6e3..336481db5 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 611d24d48..0a133a27f 100644 --- a/ares/ares_process.c +++ b/ares/ares_process.c @@ -44,6 +44,7 @@ #include <sys/filio.h> #endif +#include <assert.h> #include <string.h> #include <stdlib.h> #include <fcntl.h> |