2
0
Эх сурвалжийг харах

Fix OpenSSL compilation on Windows

Fixes #4285.
mrezai 9 жил өмнө
parent
commit
2cbd850979

+ 5 - 1
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)