From 7829b79768124eb6d3628267f71780121f245265 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 8 May 2008 22:11:38 +0000 Subject: [PATCH] check for strings.h in configure and use it for the strcasecmp() proto --- ares_gethostbyname.c | 3 +++ ares_parse_a_reply.c | 3 +++ ares_parse_aaaa_reply.c | 3 +++ ares_parse_ptr_reply.c | 3 +++ ares_process.c | 3 +++ configure.ac | 1 + 6 files changed, 16 insertions(+) diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c index 33093aa..d737b41 100644 --- a/ares_gethostbyname.c +++ b/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_parse_a_reply.c b/ares_parse_a_reply.c index 34f2d67..42c4ff7 100644 --- a/ares_parse_a_reply.c +++ b/ares_parse_a_reply.c @@ -29,6 +29,9 @@ #include #endif #endif +#ifdef HAVE_STRINGS_H +#include +#endif #include #include diff --git a/ares_parse_aaaa_reply.c b/ares_parse_aaaa_reply.c index 95e0c30..3070632 100644 --- a/ares_parse_aaaa_reply.c +++ b/ares_parse_aaaa_reply.c @@ -31,6 +31,9 @@ #include #endif #endif +#ifdef HAVE_STRINGS_H +#include +#endif #include #include diff --git a/ares_parse_ptr_reply.c b/ares_parse_ptr_reply.c index 7025158..070bce8 100644 --- a/ares_parse_ptr_reply.c +++ b/ares_parse_ptr_reply.c @@ -28,6 +28,9 @@ #include #endif #endif +#ifdef HAVE_STRINGS_H +#include +#endif #include #include diff --git a/ares_process.c b/ares_process.c index d977d09..442e328 100644 --- a/ares_process.c +++ b/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/configure.ac b/configure.ac index f3b80cf..203f809 100644 --- a/configure.ac +++ b/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 \ -- 2.7.4