use HAVE_LIMITS_H symbol to protect limits.h inclusion

pull/1/head
Yang Tse 16 years ago
parent 737707bf4b
commit 262ff45c9d
  1. 5
      ares_parse_a_reply.c
  2. 5
      ares_parse_aaaa_reply.c
  3. 5
      ares_writev.c
  4. 3
      config-win32.h
  5. 1
      configure.ac

@ -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"

@ -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"

@ -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"

@ -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

@ -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,

Loading…
Cancel
Save