Skip to content

Commit b12385f

Browse files
committed
[libc] [NFC] wait4Impl: include <signal.h> instead of <sys/signal.h>
sys/signal.h currently does not exist in LLVM-libc. Both glibc and musl provides this header with simply: > #include <signal.h> (and a warning in musl libc) If you try to build LLVM-libc in a sysroot with only LLVM-libc headers and linux-headers installed then this will fail the build due to missing headers. However, if --sysroot is not passed, then the LLVM-libc build will pick up the header from the system which in turn includes LLVM-libc's signal.h. LLVM-libc includes <signal.h> in all other cases, so this simply matches that. Providing <sys/signal.h> could also be done (instead) for glibc compatibility.
1 parent 9db804b commit b12385f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/sys/wait/wait4Impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "src/__support/error_or.h"
1515
#include "src/errno/libc_errno.h"
1616

17-
#include <sys/signal.h>
17+
#include <signal.h>
1818
#include <sys/syscall.h> // For syscall numbers.
1919
#include <sys/wait.h>
2020

0 commit comments

Comments
 (0)