Skip to content

Commit f6259d9

Browse files
committed
[libc] Fix the remaining old style includes
These were omitted from previous cleanup changes. Differential Revision: https://reviews.llvm.org/D159066
1 parent 15b5ac3 commit f6259d9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

libc/src/__support/threads/linux/callonce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
#include "futex_word.h"
1010

11-
#include "include/sys/syscall.h" // For syscall numbers.
1211
#include "src/__support/CPP/atomic.h"
1312
#include "src/__support/OSUtil/syscall.h" // For syscall functions.
1413
#include "src/__support/threads/callonce.h"
1514

1615
#include <limits.h>
1716
#include <linux/futex.h>
17+
#include <sys/syscall.h> // For syscall numbers.
1818

1919
namespace __llvm_libc {
2020

libc/src/signal/linux/__restore.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
// strongly control the options this file is compiled with. __restore_rt cannot
1111
// make any stack allocations so we must ensure this.
1212

13-
#include "include/sys/syscall.h"
1413
#include "src/__support/OSUtil/syscall.h"
1514

15+
#include <sys/syscall.h>
16+
1617
namespace __llvm_libc {
1718

1819
extern "C" void __restore_rt()

libc/src/threads/linux/call_once.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
#include "Futex.h"
1010

11-
#include "include/sys/syscall.h" // For syscall numbers.
12-
#include "include/threads.h" // For call_once related type definition.
1311
#include "src/__support/CPP/atomic.h"
1412
#include "src/__support/OSUtil/syscall.h" // For syscall functions.
1513
#include "src/__support/common.h"
@@ -18,6 +16,8 @@
1816

1917
#include <limits.h>
2018
#include <linux/futex.h>
19+
#include <sys/syscall.h> // For syscall numbers.
20+
#include <threads.h> // For call_once related type definition.
2121

2222
namespace __llvm_libc {
2323

0 commit comments

Comments
 (0)