File libgcrypt-1.6.5-w32-thread-fix.patch of Package mingw64-libgcrypt

--- a/src/gcrypt.h.in	2017-07-11 04:55:43.134101010 +0000
+++ b/src/gcrypt.h.in	2017-07-11 04:56:58.502785905 +0000
@@ -202,6 +202,7 @@
 #define GCRY_THREAD_OPTION_USER     1
 #define GCRY_THREAD_OPTION_PTH      2
 #define GCRY_THREAD_OPTION_PTHREAD  3
+#define GCRY_THREAD_OPTION_W32  4
 
 /* The version number encoded in the OPTION field of the struct
    gcry_thread_cbs.  */
@@ -225,6 +226,9 @@
   static struct gcry_thread_cbs gcry_threads_pthread = {                \
     (GCRY_THREAD_OPTION_PTHREAD | (GCRY_THREAD_OPTION_VERSION << 8))}
 
+#define GCRY_THREAD_OPTION_W32_IMPL                                 \
+  static struct gcry_thread_cbs gcry_threads_w32 = {                \
+    (GCRY_THREAD_OPTION_W32 | (GCRY_THREAD_OPTION_VERSION << 8))}
 
 
 /* A generic context object as used by some functions.  */
openSUSE Build Service is sponsored by