From 6df5dddd9032eda9e255b36bebc3a09134f0a846 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 8 May 2008 22:11:38 +0000 Subject: check for strings.h in configure and use it for the strcasecmp() proto --- ares/ares_gethostbyname.c | 3 +++ ares/ares_parse_a_reply.c | 3 +++ ares/ares_parse_aaaa_reply.c | 3 +++ ares/ares_parse_ptr_reply.c | 3 +++ ares/ares_process.c | 3 +++ ares/configure.ac | 1 + 6 files changed, 16 insertions(+) diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c index 33093aaf0..d737b41f2 100644 --- a/ares/ares_gethostbyname.c +++ b/ares/ares_gethostbyname.c @@ -36,6 +36,9 @@ #include #include #include +#ifdef HAVE_STRINGS_H +#include +#endif #include "ares.h" #include "ares_private.h" diff --git a/ares/ares_parse_a_reply.c b/ares/ares_parse_a_reply.c index 34f2d67e0..42c4ff7f2 100644 --- a/ares/ares_parse_a_reply.c +++ b/ares/ares_parse_a_reply.c @@ -29,6 +29,9 @@ #include #endif #endif +#ifdef HAVE_STRINGS_H +#include +#endif #include #include diff --git a/ares/ares_parse_aaaa_reply.c b/ares/ares_parse_aaaa_reply.c index 95e0c3053..30706328b 100644 --- a/ares/ares_parse_aaaa_reply.c +++ b/ares/ares_parse_aaaa_reply.c @@ -31,6 +31,9 @@ #include #endif #endif +#ifdef HAVE_STRINGS_H +#include +#endif #include #include diff --git a/ares/ares_parse_ptr_reply.c b/ares/ares_parse_ptr_reply.c index 7025158fb..070bce865 100644 --- a/ares/ares_parse_ptr_reply.c +++ b/ares/ares_parse_ptr_reply.c @@ -28,6 +28,9 @@ #include #endif #endif +#ifdef HAVE_STRINGS_H +#include +#endif #include #include diff --git a/ares/ares_process.c b/ares/ares_process.c index d977d0937..442e3280c 100644 --- a/ares/ares_process.c +++ b/ares/ares_process.c @@ -44,6 +44,9 @@ #endif #endif /* WIN32 && !WATT32 */ +#ifdef HAVE_STRINGS_H +#include +#endif #ifdef HAVE_UNISTD_H #include #endif diff --git a/ares/configure.ac b/ares/configure.ac index f3b80cfd1..203f8093a 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -383,6 +383,7 @@ AC_CHECK_HEADERS( netinet/tcp.h \ net/if.h \ errno.h \ + strings.h \ stdbool.h \ arpa/nameser.h \ arpa/nameser_compat.h \ -- cgit v1.2.3