diff options
author | Rich Salz <rsalz@akamai.com> | 2021-02-18 22:27:08 +0100 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-11 23:00:18 +0100 |
commit | 3d8905f85945d899192b113ae495e99894687c4f (patch) | |
tree | 522edcba827af5b6740d8c4078a53d7f96b53526 /crypto/threads_pthread.c | |
parent | Increase the upper limit on group name length (diff) | |
download | openssl-3d8905f85945d899192b113ae495e99894687c4f.tar.xz openssl-3d8905f85945d899192b113ae495e99894687c4f.zip |
Fix error-checking compiles for mutex
Fixes: #14229
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14264)
Diffstat (limited to 'crypto/threads_pthread.c')
-rw-r--r-- | crypto/threads_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/threads_pthread.c b/crypto/threads_pthread.c index 3004e1bd2f..e81f3cf1ef 100644 --- a/crypto/threads_pthread.c +++ b/crypto/threads_pthread.c @@ -55,7 +55,7 @@ CRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void) * We don't use recursive mutexes, but try to catch errors if we do. */ pthread_mutexattr_init(&attr); -# if defined(NDEBUG) && defined(PTHREAD_MUTEX_ERRORCHECK) +# if !defined(NDEBUG) && !defined(OPENSSL_NO_MUTEX_ERRORCHECK) pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK); # else pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL); |