瀏覽代碼

Fix OpenSSL compilation on Windows

Fixes #4285.
mrezai 9 年之前
父節點
當前提交
2cbd850979
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      drivers/builtin_openssl2/crypto/o_str.c

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