1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 10:09:58 +00:00

use HAVE_LIMITS_H symbol to protect limits.h inclusion

This commit is contained in:
Yang Tse
2009-04-14 13:50:32 +00:00
parent 737707bf4b
commit 262ff45c9d
5 changed files with 16 additions and 3 deletions

View File

@ -44,7 +44,10 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_LIMITS_H
# include <limits.h> # include <limits.h>
#endif
#include "ares.h" #include "ares.h"
#include "ares_dns.h" #include "ares_dns.h"
#include "ares_private.h" #include "ares_private.h"

View File

@ -44,7 +44,10 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_LIMITS_H
# include <limits.h> # include <limits.h>
#endif
#include "ares.h" #include "ares.h"
#include "ares_dns.h" #include "ares_dns.h"
#include "inet_net_pton.h" #include "inet_net_pton.h"

View File

@ -18,7 +18,10 @@
#include "setup.h" #include "setup.h"
#ifdef HAVE_LIMITS_H
# include <limits.h> # include <limits.h>
#endif
#include "ares.h" #include "ares.h"
#include "ares_private.h" #include "ares_private.h"

View File

@ -29,6 +29,9 @@
#define HAVE_GETOPT_H 1 #define HAVE_GETOPT_H 1
#endif #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 if you have the <signal.h> header file. */
#define HAVE_SIGNAL_H 1 #define HAVE_SIGNAL_H 1

View File

@ -448,6 +448,7 @@ AC_CHECK_HEADERS(
strings.h \ strings.h \
stdbool.h \ stdbool.h \
time.h \ time.h \
limits.h \
arpa/nameser.h \ arpa/nameser.h \
arpa/nameser_compat.h \ arpa/nameser_compat.h \
arpa/inet.h, arpa/inet.h,