summaryrefslogtreecommitdiff
path: root/drivers/builtin_openssl2/crypto/o_str.c
diff options
context:
space:
mode:
authormrezai <mhd.rezai@gmail.com>2016-04-12 10:28:56 +0430
committerRĂ©mi Verschelde <remi@verschelde.fr>2016-04-12 07:58:56 +0200
commit2cbd850979ac6d260f15a1e62f7b0a89e7a16b4d (patch)
treee42b32552ed0cfc229a153a5829ba3a2a151cc7f /drivers/builtin_openssl2/crypto/o_str.c
parent925aa086a27fc06d7dacc866fed975046652cf23 (diff)
Fix OpenSSL compilation on Windows
Fixes #4285.
Diffstat (limited to 'drivers/builtin_openssl2/crypto/o_str.c')
-rw-r--r--drivers/builtin_openssl2/crypto/o_str.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/builtin_openssl2/crypto/o_str.c b/drivers/builtin_openssl2/crypto/o_str.c
index fd4087ffe3..72de37eaf5 100644
--- a/drivers/builtin_openssl2/crypto/o_str.c
+++ b/drivers/builtin_openssl2/crypto/o_str.c
@@ -64,7 +64,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)