Skip to content

Commit

Permalink
[libc] Fix the remaining old style includes
Browse files Browse the repository at this point in the history
These were omitted from previous cleanup changes.

Differential Revision: https://reviews.llvm.org/D159066
  • Loading branch information
petrhosek committed Aug 29, 2023
1 parent 15b5ac3 commit f6259d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libc/src/__support/threads/linux/callonce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <limits.h>
#include <linux/futex.h>
#include <sys/syscall.h> // For syscall numbers.

namespace __llvm_libc {

Expand Down
3 changes: 2 additions & 1 deletion libc/src/signal/linux/__restore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/syscall.h>

namespace __llvm_libc {

extern "C" void __restore_rt()
Expand Down
4 changes: 2 additions & 2 deletions libc/src/threads/linux/call_once.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -18,6 +16,8 @@

#include <limits.h>
#include <linux/futex.h>
#include <sys/syscall.h> // For syscall numbers.
#include <threads.h> // For call_once related type definition.

namespace __llvm_libc {

Expand Down

0 comments on commit f6259d9

Please sign in to comment.