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:20 +0000 (15:25 +0200)
commitd39de4792dbdb6ab5f78c79d52d0210b44584538
tree99065181d1ae6abd6fa6c8e24bebe7a1eb202f98
parentc29cf39449f78008e39af8f83760f2464815248b
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)
crypto/threads_pthread.c