diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-05-08 22:11:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-05-08 22:11:38 +0000 |
commit | 6df5dddd9032eda9e255b36bebc3a09134f0a846 (patch) | |
tree | 5600f434b1cd3a595527f8edb0aac13cc86d24ac | |
parent | d4e9b141dbada253455fd0a13ce27bfb81969e4d (diff) |
check for strings.h in configure and use it for the strcasecmp() proto
-rw-r--r-- | ares/ares_gethostbyname.c | 3 | ||||
-rw-r--r-- | ares/ares_parse_a_reply.c | 3 | ||||
-rw-r--r-- | ares/ares_parse_aaaa_reply.c | 3 | ||||
-rw-r--r-- | ares/ares_parse_ptr_reply.c | 3 | ||||
-rw-r--r-- | ares/ares_process.c | 3 | ||||
-rw-r--r-- | ares/configure.ac | 1 |
6 files changed, 16 insertions, 0 deletions
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 <stdlib.h> #include <string.h> #include <ctype.h> +#ifdef HAVE_STRINGS_H +#include <strings.h> +#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 <arpa/nameser_compat.h> #endif #endif +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif #include <stdlib.h> #include <string.h> 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 <arpa/nameser_compat.h> #endif #endif +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif #include <stdlib.h> #include <string.h> 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 <arpa/nameser_compat.h> #endif #endif +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif #include <stdlib.h> #include <string.h> 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 <strings.h> +#endif #ifdef HAVE_UNISTD_H #include <unistd.h> #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 \ |