Never use `__atomic_*` on macOS 10.7 and 10.8
authorKirill A. Korinsky <kirill@korins.ky>
Thu, 7 Apr 2022 13:07:37 +0000 (15:07 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 22 Apr 2022 13:25:53 +0000 (15:25 +0200)
commit22eb3863845b898fcefdc2122586795bb5e9bcdf
tree257d10432942d7160633a7056e3863aa2a4176f0
parent2c31d942af28a20e87979cbc76c3dd8d162c1a9c
Never use `__atomic_*` on macOS 10.7 and 10.8

macOS 10.7 and 10.8 had a bit wired clang which is detected as
`__GNUC__` which has `__ATOMIC_ACQ_REL` but it excepts one option at
`__atomic_is_lock_free` instead of 2.

This prevents OpenSSL to be compiled on such systems.

Fixes: #18055
Signed-off-by: Kirill A. Korinsky <kirill@korins.ky>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18056)

(cherry picked from commit d39de4792dbdb6ab5f78c79d52d0210b44584538)
crypto/threads_pthread.c