From d803ec8416189a0cc5a7b0882ce5ffdbab39b82c Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Sat, 19 Jan 2019 01:20:14 +0100 Subject: [PATCH] restore pthread_self() on Windows, used in openssl implementation --- include/ma_pthread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ma_pthread.h b/include/ma_pthread.h index 63cc6467..c01242fc 100644 --- a/include/ma_pthread.h +++ b/include/ma_pthread.h @@ -28,6 +28,7 @@ typedef CRITICAL_SECTION pthread_mutex_t; #define pthread_mutex_lock(A) (EnterCriticalSection(A),0) #define pthread_mutex_unlock(A) LeaveCriticalSection(A) #define pthread_mutex_destroy(A) DeleteCriticalSection(A) +#define pthread_self() GetCurrentThreadId() #endif /* defined(_WIN32) */ #endif /* _my_ptread_h */