Skip to content

Commit e718db1

Browse files
committed
[libc] make include guards explicit
Signed-off-by: Shreeyash Pandey <[email protected]>
1 parent 5f99c9f commit e718db1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libc/include/sys/syscall.h.def

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
#ifndef LLVM_LIBC_SYS_SYSCALL_H
1010
#define LLVM_LIBC_SYS_SYSCALL_H
1111

12-
//TODO: Handle non-linux syscalls
13-
1412
#if defined(__APPLE__)
13+
1514
#include <sys/syscall.h>
16-
#else
15+
16+
#elif defined(__linux__)
17+
1718
#include <asm/unistd.h>
1819

1920
#ifdef __NR_FAST_atomic_update
@@ -2364,6 +2365,6 @@
23642365
#define SYS_writev __NR_writev
23652366
#endif
23662367

2367-
#endif
2368+
#endif // __linux__
23682369

23692370
#endif // LLVM_LIBC_SYS_SYSCALL_H

0 commit comments

Comments
 (0)