소스 검색

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)