diff options
| author | Job Henandez Lara <jobhdezlara93@gmail.com> | 2024-10-28 14:49:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-28 17:49:36 -0400 |
| commit | 7b663bd9179a205d5a65a34e447fbeffcb43c194 (patch) | |
| tree | 41acf32c2868f928320e17b1ac09e4dbf79e5d1d /libc/src/sys | |
| parent | c5edecbb4bfe08997819ff84712e3e22ddd04490 (diff) | |
[libc] Fix the remaining fcntl.h proxy header includes. (#113961)
Diffstat (limited to 'libc/src/sys')
| -rw-r--r-- | libc/src/sys/mman/linux/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | libc/src/sys/mman/linux/shm_open.cpp | 2 | ||||
| -rw-r--r-- | libc/src/sys/mman/shm_open.h | 2 | ||||
| -rw-r--r-- | libc/src/sys/stat/linux/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | libc/src/sys/stat/linux/chmod.cpp | 1 | ||||
| -rw-r--r-- | libc/src/sys/stat/linux/mkdir.cpp | 1 |
6 files changed, 7 insertions, 4 deletions
diff --git a/libc/src/sys/mman/linux/CMakeLists.txt b/libc/src/sys/mman/linux/CMakeLists.txt index 11188254cfbd..47c16f79bc8d 100644 --- a/libc/src/sys/mman/linux/CMakeLists.txt +++ b/libc/src/sys/mman/linux/CMakeLists.txt @@ -187,8 +187,7 @@ add_entrypoint_object( ../shm_open.h DEPENDS libc.src.fcntl.open - libc.include.llvm-libc-macros.fcntl_macros - libc.include.llvm-libc-types.mode_t + libc.hdr.types.mode_t .shm_common ) diff --git a/libc/src/sys/mman/linux/shm_open.cpp b/libc/src/sys/mman/linux/shm_open.cpp index d235e57aefde..11de482272d0 100644 --- a/libc/src/sys/mman/linux/shm_open.cpp +++ b/libc/src/sys/mman/linux/shm_open.cpp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/sys/mman/shm_open.h" -#include "llvm-libc-macros/fcntl-macros.h" +#include "hdr/types/mode_t.h" #include "src/__support/macros/config.h" #include "src/fcntl/open.h" #include "src/sys/mman/linux/shm_common.h" diff --git a/libc/src/sys/mman/shm_open.h b/libc/src/sys/mman/shm_open.h index c890304aa4ac..1872dd30cb6f 100644 --- a/libc/src/sys/mman/shm_open.h +++ b/libc/src/sys/mman/shm_open.h @@ -9,8 +9,8 @@ #ifndef LLVM_LIBC_SRC_SYS_MMAN_SHM_OPEN_H #define LLVM_LIBC_SRC_SYS_MMAN_SHM_OPEN_H +#include "hdr/types/mode_t.h" #include "src/__support/macros/config.h" -#include <llvm-libc-types/mode_t.h> namespace LIBC_NAMESPACE_DECL { diff --git a/libc/src/sys/stat/linux/CMakeLists.txt b/libc/src/sys/stat/linux/CMakeLists.txt index 7c9496b6b6e8..9aeb14636c2c 100644 --- a/libc/src/sys/stat/linux/CMakeLists.txt +++ b/libc/src/sys/stat/linux/CMakeLists.txt @@ -6,6 +6,7 @@ add_entrypoint_object( ../chmod.h DEPENDS libc.hdr.types.mode_t + libc.hdr.fcntl_macros libc.include.sys_stat libc.include.sys_syscall libc.src.__support.OSUtil.osutil @@ -47,6 +48,7 @@ add_entrypoint_object( ../mkdir.h DEPENDS libc.hdr.types.mode_t + libc.hdr.fcntl_macros libc.include.sys_stat libc.include.sys_syscall libc.src.__support.OSUtil.osutil diff --git a/libc/src/sys/stat/linux/chmod.cpp b/libc/src/sys/stat/linux/chmod.cpp index 9d2860391818..57d5bae6b819 100644 --- a/libc/src/sys/stat/linux/chmod.cpp +++ b/libc/src/sys/stat/linux/chmod.cpp @@ -11,6 +11,7 @@ #include "src/__support/OSUtil/syscall.h" // For internal syscall function. #include "src/__support/common.h" +#include "hdr/fcntl_macros.h" #include "hdr/types/mode_t.h" #include "src/__support/macros/config.h" #include "src/errno/libc_errno.h" diff --git a/libc/src/sys/stat/linux/mkdir.cpp b/libc/src/sys/stat/linux/mkdir.cpp index bd6efef858c7..b319b5c8393d 100644 --- a/libc/src/sys/stat/linux/mkdir.cpp +++ b/libc/src/sys/stat/linux/mkdir.cpp @@ -11,6 +11,7 @@ #include "src/__support/OSUtil/syscall.h" // For internal syscall function. #include "src/__support/common.h" +#include "hdr/fcntl_macros.h" #include "hdr/types/mode_t.h" #include "src/__support/macros/config.h" #include "src/errno/libc_errno.h" |
