summaryrefslogtreecommitdiff
path: root/acountry.c
diff options
context:
space:
mode:
Diffstat (limited to 'acountry.c')
-rw-r--r--acountry.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/acountry.c b/acountry.c
index 169f814..f74577f 100644
--- a/acountry.c
+++ b/acountry.c
@@ -60,6 +60,21 @@
#include "inet_net_pton.h"
#include "inet_ntop.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
+
#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
#endif