diff --git a/libc/src/__support/threads/linux/callonce.cpp b/libc/src/__support/threads/linux/callonce.cpp --- a/libc/src/__support/threads/linux/callonce.cpp +++ b/libc/src/__support/threads/linux/callonce.cpp @@ -8,13 +8,13 @@ #include "futex_word.h" -#include "include/sys/syscall.h" // For syscall numbers. #include "src/__support/CPP/atomic.h" #include "src/__support/OSUtil/syscall.h" // For syscall functions. #include "src/__support/threads/callonce.h" #include #include +#include // For syscall numbers. namespace __llvm_libc { diff --git a/libc/src/signal/linux/__restore.cpp b/libc/src/signal/linux/__restore.cpp --- a/libc/src/signal/linux/__restore.cpp +++ b/libc/src/signal/linux/__restore.cpp @@ -10,9 +10,10 @@ // strongly control the options this file is compiled with. __restore_rt cannot // make any stack allocations so we must ensure this. -#include "include/sys/syscall.h" #include "src/__support/OSUtil/syscall.h" +#include + namespace __llvm_libc { extern "C" void __restore_rt() diff --git a/libc/src/threads/linux/call_once.cpp b/libc/src/threads/linux/call_once.cpp --- a/libc/src/threads/linux/call_once.cpp +++ b/libc/src/threads/linux/call_once.cpp @@ -8,8 +8,6 @@ #include "Futex.h" -#include "include/sys/syscall.h" // For syscall numbers. -#include "include/threads.h" // For call_once related type definition. #include "src/__support/CPP/atomic.h" #include "src/__support/OSUtil/syscall.h" // For syscall functions. #include "src/__support/common.h" @@ -18,6 +16,8 @@ #include #include +#include // For syscall numbers. +#include // For call_once related type definition. namespace __llvm_libc {