win32/win64: added new patch to fix openssl compilation on windows via the mingw64 toolchain.

pull/596/head
Yichun Zhang (agentzh) 3 years ago
parent 05db2b8e84
commit 7dfeed5921
  1. 11
      patches/openssl-1.1.1d-win_fix.patch
  2. 1
      util/build-win32.sh

@ -0,0 +1,11 @@
--- openssl-1.1.1d/crypto/threads_none.c 2019-09-10 06:13:07.000000000 -0700
+++ openssl-1.1.1d-patched/crypto/threads_none.c 2020-03-19 19:58:56.093255300 -0700
@@ -143,7 +143,7 @@ int openssl_get_fork_id(void)
# if defined(OPENSSL_SYS_UNIX)
return getpid();
# else
- return return 0;
+ return 0;
# endif
}
#endif

@ -21,6 +21,7 @@ cd ../..
cd objs/lib/$OPENSSL || exit 1
#patch -p1 < ../../../patches/openssl-1.1.0j-parallel_build_fix.patch || exit 1
patch -p1 < ../../../patches/openssl-1.1.1c-sess_set_get_cb_yield.patch || exit 1
patch -p1 < ../../../patches/openssl-1.1.1d-win_fix.patch || exit 1
#patch -p1 < ../../../patches/openssl-1.1.1e-sess_set_get_cb_yield.patch || exit 1
cd ../../..

Loading…
Cancel
Save