X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fthreads%2Fth-lock.c;h=14aae5f9128751cd01707aa3f4ee29eb8140d14e;hb=42a36658c196f95fb08775241c148baa26d45250;hp=3ee978060c205244aff3a04b0cc8d41ce8ef13a3;hpb=2d2d31394a710cfe854e3dd7f862613a6b45fcc4;p=oweals%2Fopenssl.git diff --git a/crypto/threads/th-lock.c b/crypto/threads/th-lock.c index 3ee978060c..14aae5f912 100644 --- a/crypto/threads/th-lock.c +++ b/crypto/threads/th-lock.c @@ -63,7 +63,7 @@ #ifdef LINUX #include #endif -#ifdef WIN32 +#ifdef OPENSSL_SYS_WIN32 #include #endif #ifdef SOLARIS @@ -80,7 +80,7 @@ #include #include #include -#include +#include "../../e_os.h" #include #include #include @@ -105,7 +105,7 @@ static unsigned long pthreads_thread_id(void ); #define THREAD_STACK_SIZE (16*1024) -#ifdef WIN32 +#ifdef OPENSSL_SYS_WIN32 static HANDLE *lock_cs; @@ -113,7 +113,7 @@ void CRYPTO_thread_setup(void) { int i; - lock_cs=Malloc(CRYPTO_num_locks() * sizeof(HANDLE)); + lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(HANDLE)); for (i=0; i