From b5a9f9f6dc06095c399701de2c6ca976b40bb09c Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Fri, 7 Jul 2023 08:57:30 -0400 Subject: [PATCH] [libc++] Make sure we use __ulock on Apple platforms We forgot to include the header, which means that _LIBCPP_USE_ULOCK was always undefined and we'd always use the fallback. Note that this doesn't seem to fix https://github.com/llvm/llvm-project/issues/63737. Differential Revision: https://reviews.llvm.org/D154718 --- libcxx/src/atomic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcxx/src/atomic.cpp b/libcxx/src/atomic.cpp index 4e63a72c0ec3e..a55249a15c217 100644 --- a/libcxx/src/atomic.cpp +++ b/libcxx/src/atomic.cpp @@ -15,6 +15,8 @@ #include #include +#include "include/apple_availability.h" + #ifdef __linux__ #include