Created
May 21, 2022 04:20
-
-
Save colemancda/a7c116250ceb601da5b408a4fd36f239 to your computer and use it in GitHub Desktop.
libdispatch-5.6.1-armv7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/shims/yield.c b/src/shims/yield.c | |
index 43f0017..d0c5fff 100644 | |
--- a/src/shims/yield.c | |
+++ b/src/shims/yield.c | |
@@ -36,7 +36,7 @@ void * | |
_dispatch_wait_for_enqueuer(void **ptr) | |
{ | |
#if !DISPATCH_HW_CONFIG_UP | |
-#if defined(__arm__) || defined(__arm64__) | |
+#if (defined(__arm__) && defined(__APPLE__)) || defined(__arm64__) | |
int spins = DISPATCH_WAIT_SPINS_WFE; | |
void *value; | |
while (unlikely(spins-- > 0)) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment