Skip to content

Commit 8ee95e8

Browse files
committed
Fixed Alpine/musl builds: include unistd.h in gcc-preinclude
GCC 13 on Alpine 3.20 (musl) has a bug where atomic_wait.h uses syscall() without including <unistd.h>. Adding it to the preinclude header fixes the musl builds without affecting glibc.
1 parent 20a3bd2 commit 8ee95e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/gcc-preinclude.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#if defined(__linux__)
44

5+
#include <unistd.h>
6+
57
#define _GNU_SOURCE
68
#include <features.h>
79
#undef _GNU_SOURCE

0 commit comments

Comments
 (0)