Skip to content

Commit 4a1140a

Browse files
committed
[libc] use <sys/syscall.h> as its cleaner and license compliant
1 parent b0ab286 commit 4a1140a

File tree

2 files changed

+4
-572
lines changed

2 files changed

+4
-572
lines changed

libc/include/sys/syscall.h.def

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
//TODO: Handle non-linux syscalls
1313

14+
#if defined(__APPLE__)
15+
#include <sys/syscall.h>
16+
#else
1417
#include <asm/unistd.h>
1518

1619
#ifdef __NR_FAST_atomic_update
@@ -2361,5 +2364,6 @@
23612364
#define SYS_writev __NR_writev
23622365
#endif
23632366

2367+
#endif
23642368

23652369
#endif // LLVM_LIBC_SYS_SYSCALL_H

0 commit comments

Comments
 (0)