]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
use HAVE_LIMITS_H symbol to protect limits.h inclusion
authorYang Tse <yangsita@gmail.com>
Tue, 14 Apr 2009 13:50:32 +0000 (13:50 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 14 Apr 2009 13:50:32 +0000 (13:50 +0000)
ares/ares_parse_a_reply.c
ares/ares_parse_aaaa_reply.c
ares/ares_writev.c
ares/config-win32.h
ares/configure.ac
lib/config-win32.h
lib/config-win32ce.h
lib/hostares.c
lib/qssl.c
lib/ssh.c
lib/ssluse.c

index b8d98d43c0fe84d28af9b8499395b4e779b97ace..c2d809f2c66dc5d572142734ec2d3edcec78ee2a 100644 (file)
 
 #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"
index 60f8f851b0cb0dfcffc56cb23498ba14a0d57131..0624161a27957bdb4930bf18dd84b0a470b42d3f 100644 (file)
 
 #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"
index 045373b638e2bc346d0a53637b0df70494b5cdcd..96cf543dc21507b6f5f3c82aa23893f768aa6899 100644 (file)
 
 #include "setup.h"
 
-#include <limits.h>
+#ifdef HAVE_LIMITS_H
+#  include <limits.h>
+#endif
+
 #include "ares.h"
 #include "ares_private.h"
 
index f281255812094bca6805990c32f543d0153af485..e8c5d72a424b169249d8abc0c3b1ccba7b2ccc06 100644 (file)
@@ -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
 
index ce66b853018b29469211a977cc5f99acfe8b7bc8..67dc007717da04faf2826911c505cb71ddf50d02 100644 (file)
@@ -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,
index 6e37a3c759833e00f9fcd9ee4cbbceac3c854029..1318d297871fbb45a4792d77d61e0b1c5100cb74 100644 (file)
@@ -30,6 +30,9 @@
 /* Define if you have the <io.h> header file.  */
 #define HAVE_IO_H 1
 
+/* Define if you have the <limits.h> header file.  */
+#define HAVE_LIMITS_H 1
+
 /* Define if you need the malloc.h header file even with stdlib.h  */
 #ifndef __SALFORDC__
 #define NEED_MALLOC_H 1
index 69caa46669999a18bf860e6f410bc84c3cfa52ac..57571b51ffdc50bcd3273d8eafb5a4d9576abef6 100644 (file)
@@ -30,6 +30,9 @@
 /* Define if you have the <io.h> header file.  */
 #define HAVE_IO_H 1
 
+/* Define if you have the <limits.h> header file.  */
+#define HAVE_LIMITS_H 1
+
 /* Define if you need the malloc.h header header file even with stdlib.h  */
 #define NEED_MALLOC_H 1
 
index b6af96f83f1cbc3fd8c8fced68a4b9198ca22b3b..1198ac7d9cccd173c19bc23af24933b01f9305bd 100644 (file)
 #include "setup.h"
 
 #include <string.h>
-#include <limits.h>
 
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
 #ifdef NEED_MALLOC_H
 #include <malloc.h>
 #endif
index f2de800c54bc96b69b59713ac1904f0c55a1f893..a855f4a0cc0704b232769852300c7cd98343fbda 100644 (file)
@@ -27,7 +27,9 @@
 #include <qsossl.h>
 #include <errno.h>
 #include <string.h>
-#include <limits.h>
+#ifdef HAVE_LIMITS_H
+#  include <limits.h>
+#endif
 
 #include <curl/curl.h>
 #include "urldata.h"
index 6980c81b56fc06d51dffd876406d76224c3e4c32..142da39bd20d0795acdb7a6133988da74c8843b4 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -31,7 +31,9 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <ctype.h>
-#include <limits.h>
+#ifdef HAVE_LIMITS_H
+#  include <limits.h>
+#endif
 
 #include <libssh2.h>
 #include <libssh2_sftp.h>
index 3887f95028a57362f4254a925eed2b8eb9099901..821ec420ce4b5f4aff9816733e19dde626697f91 100644 (file)
@@ -36,7 +36,9 @@
 #include <string.h>
 #include <stdlib.h>
 #include <ctype.h>
+#ifdef HAVE_LIMITS_H
 #include <limits.h>
+#endif
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif