We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ee66b commit 2193e4fCopy full SHA for 2193e4f
compiler-rt/lib/rtsan/rtsan_interceptors.cpp
@@ -21,6 +21,18 @@
21
#include "rtsan/rtsan_context.h"
22
23
#if SANITIZER_APPLE
24
+
25
+#if TARGET_OS_MAC
26
+// On MacOS OSSpinLockLock is deprecated and no longer present in the headers,
27
+// but the symbol still exists on the system. Forward declare here so we
28
+// don't get compilation errors.
29
+#include <stdint.h>
30
+extern "C" {
31
+typedef int32_t OSSpinLock;
32
+void OSSpinLockLock(volatile OSSpinLock *__lock);
33
+}
34
+#endif
35
36
#include <libkern/OSAtomic.h>
37
#include <os/lock.h>
38
#endif
0 commit comments