aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-14 13:50:32 +0000
committerYang Tse <yangsita@gmail.com>2009-04-14 13:50:32 +0000
commit9cc6ab39220c60ee59eaae8b207216c0a319d384 (patch)
treed630c9b0b2012e239949a0c95d07315e684b2dd7 /lib
parent2c27e24bb4cabe964d3eacfa6d809d1672e5dc82 (diff)
use HAVE_LIMITS_H symbol to protect limits.h inclusion
Diffstat (limited to 'lib')
-rw-r--r--lib/config-win32.h3
-rw-r--r--lib/config-win32ce.h3
-rw-r--r--lib/hostares.c4
-rw-r--r--lib/qssl.c4
-rw-r--r--lib/ssh.c4
-rw-r--r--lib/ssluse.c2
6 files changed, 17 insertions, 3 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 6e37a3c75..1318d2978 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -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
diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h
index 69caa4666..57571b51f 100644
--- a/lib/config-win32ce.h
+++ b/lib/config-win32ce.h
@@ -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
diff --git a/lib/hostares.c b/lib/hostares.c
index b6af96f83..1198ac7d9 100644
--- a/lib/hostares.c
+++ b/lib/hostares.c
@@ -24,8 +24,10 @@
#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
diff --git a/lib/qssl.c b/lib/qssl.c
index f2de800c5..a855f4a0c 100644
--- a/lib/qssl.c
+++ b/lib/qssl.c
@@ -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"
diff --git a/lib/ssh.c b/lib/ssh.c
index 6980c81b5..142da39bd 100644
--- 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>
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 3887f9502..821ec420c 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -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