libcxx: use __SIZEOF_LONG__ == 8 instead of __LP64__

for CHERI.

Requested by:	arichardson
Reviewed by:	arichardson, emaste, imp
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D38178
This commit is contained in:
Konstantin Belousov 2023-01-24 12:03:45 +02:00
parent 9147969bc2
commit 25b18d8935

View File

@ -77,7 +77,7 @@ static void __libcpp_platform_wake_by_address(__cxx_atomic_contention_t const vo
const_cast<__cxx_atomic_contention_t*>(__ptr), 0);
}
#elif defined(__FreeBSD__) && defined(__LP64__)
#elif defined(__FreeBSD__) && __SIZEOF_LONG__ == 8
static void __libcpp_platform_wait_on_address(__cxx_atomic_contention_t const volatile* __ptr,
__cxx_contention_t __val)