summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-09-17 09:53:17 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-09-17 09:53:17 -0300
commit431c0c69037c4c0b27777d7cf43f938ad7c8c681 (patch)
tree5e661b18d3b428555c05ec0f95b01849633a280c /drivers
parent326fd93e1df55f8fb0bc01dceca55ce28f6488ad (diff)
parentd98d3fb8ea617eadc5f8e268b9f26f8e586e118c (diff)
Merge pull request #658 from TheoXD/_windows_openssl2_fix
Someone fixed compiling issue on Win
Diffstat (limited to 'drivers')
-rw-r--r--drivers/builtin_openssl2/crypto/o_str.c6
-rw-r--r--drivers/builtin_openssl2/openssl/rand.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/builtin_openssl2/crypto/o_str.c b/drivers/builtin_openssl2/crypto/o_str.c
index 56104a6c34..d233afd46b 100644
--- a/drivers/builtin_openssl2/crypto/o_str.c
+++ b/drivers/builtin_openssl2/crypto/o_str.c
@@ -63,7 +63,11 @@
#if !defined(OPENSSL_IMPLEMENTS_strncasecmp) && \
!defined(OPENSSL_SYSNAME_WIN32) && \
!defined(NETWARE_CLIB)
-# include <strings.h>
+#ifdef _WIN32
+#include <string.h>
+#else
+#include <strings.h>
+#endif
#endif
int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n)
diff --git a/drivers/builtin_openssl2/openssl/rand.h b/drivers/builtin_openssl2/openssl/rand.h
index 290f069f4d..b5adb825fd 100644
--- a/drivers/builtin_openssl2/openssl/rand.h
+++ b/drivers/builtin_openssl2/openssl/rand.h
@@ -64,6 +64,7 @@
#include <openssl/e_os2.h>
#if defined(OPENSSL_SYS_WINDOWS)
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef OCSP_RESPONSE
#undef OCSP_RESPONSE