diff options
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_parse_a_reply.c | 5 | ||||
-rw-r--r-- | ares/ares_parse_aaaa_reply.c | 5 | ||||
-rw-r--r-- | ares/ares_writev.c | 5 | ||||
-rw-r--r-- | ares/config-win32.h | 3 | ||||
-rw-r--r-- | ares/configure.ac | 1 |
5 files changed, 16 insertions, 3 deletions
diff --git a/ares/ares_parse_a_reply.c b/ares/ares_parse_a_reply.c index b8d98d43c..c2d809f2c 100644 --- a/ares/ares_parse_a_reply.c +++ b/ares/ares_parse_a_reply.c @@ -44,7 +44,10 @@ #include <stdlib.h> #include <string.h> -#include <limits.h> +#ifdef HAVE_LIMITS_H +# include <limits.h> +#endif + #include "ares.h" #include "ares_dns.h" #include "ares_private.h" diff --git a/ares/ares_parse_aaaa_reply.c b/ares/ares_parse_aaaa_reply.c index 60f8f851b..0624161a2 100644 --- a/ares/ares_parse_aaaa_reply.c +++ b/ares/ares_parse_aaaa_reply.c @@ -44,7 +44,10 @@ #include <stdlib.h> #include <string.h> -#include <limits.h> +#ifdef HAVE_LIMITS_H +# include <limits.h> +#endif + #include "ares.h" #include "ares_dns.h" #include "inet_net_pton.h" diff --git a/ares/ares_writev.c b/ares/ares_writev.c index 045373b63..96cf543dc 100644 --- a/ares/ares_writev.c +++ b/ares/ares_writev.c @@ -18,7 +18,10 @@ #include "setup.h" -#include <limits.h> +#ifdef HAVE_LIMITS_H +# include <limits.h> +#endif + #include "ares.h" #include "ares_private.h" diff --git a/ares/config-win32.h b/ares/config-win32.h index f28125581..e8c5d72a4 100644 --- a/ares/config-win32.h +++ b/ares/config-win32.h @@ -29,6 +29,9 @@ #define HAVE_GETOPT_H 1 #endif +/* Define if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + /* Define if you have the <signal.h> header file. */ #define HAVE_SIGNAL_H 1 diff --git a/ares/configure.ac b/ares/configure.ac index ce66b8530..67dc00771 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -448,6 +448,7 @@ AC_CHECK_HEADERS( strings.h \ stdbool.h \ time.h \ + limits.h \ arpa/nameser.h \ arpa/nameser_compat.h \ arpa/inet.h, |