Skip to content

Commit fe035e9

Browse files
Merge branch 'apple:main' into main
2 parents 73f8afd + 2c4714c commit fe035e9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
// NOTE: this file must not contain any atomic operations
2525

2626
#include "internal.h"
27+
#if __linux__
28+
#include <linux/limits.h> // for PATH_MAX
29+
#endif
2730

2831
#if HAVE_MACH
2932
#include "protocolServer.h"

src/shims/yield.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void *
3636
_dispatch_wait_for_enqueuer(void **ptr)
3737
{
3838
#if !DISPATCH_HW_CONFIG_UP
39-
#if defined(__arm__) || defined(__arm64__)
39+
#if (defined(__arm__) && defined(__APPLE__)) || defined(__arm64__)
4040
int spins = DISPATCH_WAIT_SPINS_WFE;
4141
void *value;
4242
while (unlikely(spins-- > 0)) {

0 commit comments

Comments
 (0)