aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-08-24 14:00:42 +0200
committerYang Tse <yangsita@gmail.com>2011-08-24 14:00:42 +0200
commite83421baf4dc08a1a632ee9dc9bdecad19c677b2 (patch)
tree4ee166b627398eeed0adc3ea09f33a43486e6b0c /lib
parentaa5c72af15696881e20e830862642f1dfeceea7a (diff)
include limits.h for INT_MAX
Diffstat (limited to 'lib')
-rw-r--r--lib/cyassl.c4
-rw-r--r--lib/security.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/cyassl.c b/lib/cyassl.c
index 6f15b8ebd..7a089ccc2 100644
--- a/lib/cyassl.c
+++ b/lib/cyassl.c
@@ -30,6 +30,10 @@
#ifdef USE_CYASSL
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
diff --git a/lib/security.c b/lib/security.c
index a5567526e..536d7c229 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -54,6 +54,10 @@
#include <unistd.h>
#endif
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
#include "urldata.h"
#include "curl_base64.h"
#include "curl_memory.h"