summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cryptlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/cryptlib.c')
-rw-r--r--src/lib/libcrypto/cryptlib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cryptlib.c b/src/lib/libcrypto/cryptlib.c
index 356c476a99..a8f29f1e65 100644
--- a/src/lib/libcrypto/cryptlib.c
+++ b/src/lib/libcrypto/cryptlib.c
@@ -92,7 +92,9 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
92 "getservbyname", 92 "getservbyname",
93 "readdir", 93 "readdir",
94 "RSA_blinding", 94 "RSA_blinding",
95#if CRYPTO_NUM_LOCKS != 24 95 "dh",
96 "debug_malloc2",
97#if CRYPTO_NUM_LOCKS != 26
96# error "Inconsistency between crypto.h and cryptlib.c" 98# error "Inconsistency between crypto.h and cryptlib.c"
97#endif 99#endif
98 }; 100 };
@@ -181,7 +183,7 @@ unsigned long CRYPTO_thread_id(void)
181 ret=(unsigned long)GetCurrentTask(); 183 ret=(unsigned long)GetCurrentTask();
182#elif defined(WIN32) 184#elif defined(WIN32)
183 ret=(unsigned long)GetCurrentThreadId(); 185 ret=(unsigned long)GetCurrentThreadId();
184#elif defined(MSDOS) 186#elif defined(GETPID_IS_MEANINGLESS)
185 ret=1L; 187 ret=1L;
186#else 188#else
187 ret=(unsigned long)getpid(); 189 ret=(unsigned long)getpid();