Commit 9cc6ab39 authored by Yang Tse's avatar Yang Tse
Browse files

use HAVE_LIMITS_H symbol to protect limits.h inclusion

parent 2c27e24b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -44,7 +44,10 @@

#include <stdlib.h>
#include <string.h>
#ifdef HAVE_LIMITS_H
#  include <limits.h>
#endif

#include "ares.h"
#include "ares_dns.h"
#include "ares_private.h"
+4 −1
Original line number Diff line number Diff line
@@ -44,7 +44,10 @@

#include <stdlib.h>
#include <string.h>
#ifdef HAVE_LIMITS_H
#  include <limits.h>
#endif

#include "ares.h"
#include "ares_dns.h"
#include "inet_net_pton.h"
+4 −1
Original line number Diff line number Diff line
@@ -18,7 +18,10 @@

#include "setup.h"

#ifdef HAVE_LIMITS_H
#  include <limits.h>
#endif

#include "ares.h"
#include "ares_private.h"

+3 −0
Original line number Diff line number Diff line
@@ -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

+1 −0
Original line number Diff line number Diff line
@@ -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