[libc-commits] [PATCH] D159066: [libc] Fix the remaining old style includes

Petr Hosek via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Aug 28 22:36:01 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf6259d9b9a54: [libc] Fix the remaining old style includes (authored by phosek).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159066/new/

https://reviews.llvm.org/D159066

Files:
  libc/src/__support/threads/linux/callonce.cpp
  libc/src/signal/linux/__restore.cpp
  libc/src/threads/linux/call_once.cpp


Index: libc/src/threads/linux/call_once.cpp
===================================================================
--- libc/src/threads/linux/call_once.cpp
+++ 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 <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 {
 
Index: libc/src/signal/linux/__restore.cpp
===================================================================
--- libc/src/signal/linux/__restore.cpp
+++ 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 <sys/syscall.h>
+
 namespace __llvm_libc {
 
 extern "C" void __restore_rt()
Index: libc/src/__support/threads/linux/callonce.cpp
===================================================================
--- libc/src/__support/threads/linux/callonce.cpp
+++ 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 <limits.h>
 #include <linux/futex.h>
+#include <sys/syscall.h> // For syscall numbers.
 
 namespace __llvm_libc {
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159066.554185.patch
Type: text/x-patch
Size: 1846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230829/30b23111/attachment-0001.bin>


More information about the libc-commits mailing list