diff options
author | Yang Tse <yangsita@gmail.com> | 2009-04-14 13:50:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-04-14 13:50:32 +0000 |
commit | 9cc6ab39220c60ee59eaae8b207216c0a319d384 (patch) | |
tree | d630c9b0b2012e239949a0c95d07315e684b2dd7 /ares | |
parent | 2c27e24bb4cabe964d3eacfa6d809d1672e5dc82 (diff) |
use HAVE_LIMITS_H symbol to protect limits.h inclusion
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, |