From: Richard Levitte Date: Thu, 27 Jul 2000 20:14:39 +0000 (+0000) Subject: Looks like Win32 builds do not define THREADS. However, they're still X-Git-Tag: OpenSSL-engine-0_9_6-beta1~17^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d6ade7422ab60259c1d7b825ee0ff9a5361c7f42;p=oweals%2Fopenssl.git Looks like Win32 builds do not define THREADS. However, they're still supporting threads, which means that th assertion is supperbly dangerous, so make sure it's not compiled under Win32, period. --- diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index f874f2fe2c..837947e8a6 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -293,7 +293,7 @@ static void ssleay_rand_add(const void *buf, int num, double add) entropy += add; if (!add_do_not_lock) CRYPTO_w_unlock(CRYPTO_LOCK_RAND); -#ifndef THREADS +#if !defined(THREADS) && !defined(WIN32) assert(md_c[1] == md_count[1]); #endif }