aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"