From 2cbd850979ac6d260f15a1e62f7b0a89e7a16b4d Mon Sep 17 00:00:00 2001 From: mrezai Date: Tue, 12 Apr 2016 10:28:56 +0430 Subject: Fix OpenSSL compilation on Windows Fixes #4285. --- drivers/builtin_openssl2/crypto/o_str.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 +#ifdef _WIN32 +#include +#else +#include +#endif #endif int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n) -- cgit v1.2.3