aboutsummaryrefslogtreecommitdiff
path: root/ares/ahost.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ahost.c')
-rw-r--r--ares/ahost.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ares/ahost.c b/ares/ahost.c
index 882efcc77..567c7a024 100644
--- a/ares/ahost.c
+++ b/ares/ahost.c
@@ -43,6 +43,21 @@
#include "inet_net_pton.h"
#include "ares_getopt.h"
+#ifndef HAVE_STRDUP
+# include "ares_strdup.h"
+# define strdup(ptr) ares_strdup(ptr)
+#endif
+
+#ifndef HAVE_STRCASECMP
+# include "ares_strcasecmp.h"
+# define strcasecmp(p1,p2) ares_strcasecmp(p1,p2)
+#endif
+
+#ifndef HAVE_STRNCASECMP
+# include "ares_strcasecmp.h"
+# define strncasecmp(p1,p2,n) ares_strncasecmp(p1,p2,n)
+#endif
+
static void callback(void *arg, int status, int timeouts, struct hostent *host);
static void usage(void);