Skip to content

Commit

Permalink
[libc++] Make sure we use __ulock on Apple platforms
Browse files Browse the repository at this point in the history
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 #63737.

Differential Revision: https://reviews.llvm.org/D154718
  • Loading branch information
ldionne committed Jul 7, 2023
1 parent 1c83411 commit b5a9f9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcxx/src/atomic.cpp
Expand Up @@ -15,6 +15,8 @@
#include <functional>
#include <thread>

#include "include/apple_availability.h"

#ifdef __linux__

#include <unistd.h>
Expand Down

0 comments on commit b5a9f9f

Please sign in to comment.