[libc-commits] [libc] e873b41 - [libc] add the rest of the hdr/fcntl_macro.h headers (#113972)
via libc-commits
libc-commits at lists.llvm.org
Mon Oct 28 15:32:49 PDT 2024
Author: Job Henandez Lara
Date: 2024-10-28T18:32:45-04:00
New Revision: e873b415a2bfbbc2e5e2e70d77b61b7883cbf949
URL: https://github.com/llvm/llvm-project/commit/e873b415a2bfbbc2e5e2e70d77b61b7883cbf949
DIFF: https://github.com/llvm/llvm-project/commit/e873b415a2bfbbc2e5e2e70d77b61b7883cbf949.diff
LOG: [libc] add the rest of the hdr/fcntl_macro.h headers (#113972)
Added:
Modified:
libc/src/fcntl/linux/CMakeLists.txt
libc/src/fcntl/linux/open.cpp
libc/src/spawn/linux/CMakeLists.txt
libc/src/spawn/linux/posix_spawn.cpp
Removed:
################################################################################
diff --git a/libc/src/fcntl/linux/CMakeLists.txt b/libc/src/fcntl/linux/CMakeLists.txt
index ecfb2cdd3f3361..580db16cd41320 100644
--- a/libc/src/fcntl/linux/CMakeLists.txt
+++ b/libc/src/fcntl/linux/CMakeLists.txt
@@ -29,6 +29,7 @@ add_entrypoint_object(
../open.h
DEPENDS
libc.hdr.types.mode_t
+ libc.hdr.fcntl_macros
libc.src.__support.OSUtil.osutil
libc.src.errno.errno
)
diff --git a/libc/src/fcntl/linux/open.cpp b/libc/src/fcntl/linux/open.cpp
index 9f3d035388e865..8b699ecdd2043c 100644
--- a/libc/src/fcntl/linux/open.cpp
+++ b/libc/src/fcntl/linux/open.cpp
@@ -13,6 +13,7 @@
#include "src/__support/macros/config.h"
#include "src/errno/libc_errno.h"
+#include "hdr/fcntl_macros.h"
#include "hdr/types/mode_t.h"
#include <stdarg.h>
#include <sys/syscall.h> // For syscall numbers.
diff --git a/libc/src/spawn/linux/CMakeLists.txt b/libc/src/spawn/linux/CMakeLists.txt
index 5f7ab4c43165dc..26148fe1c76dbd 100644
--- a/libc/src/spawn/linux/CMakeLists.txt
+++ b/libc/src/spawn/linux/CMakeLists.txt
@@ -6,6 +6,7 @@ add_entrypoint_object(
../posix_spawn.h
DEPENDS
libc.hdr.types.mode_t
+ libc.hdr.fcntl_macros
libc.include.spawn
libc.include.sys_syscall
libc.include.signal
diff --git a/libc/src/spawn/linux/posix_spawn.cpp b/libc/src/spawn/linux/posix_spawn.cpp
index d6caf8b374a02b..fe82ba260148a6 100644
--- a/libc/src/spawn/linux/posix_spawn.cpp
+++ b/libc/src/spawn/linux/posix_spawn.cpp
@@ -14,6 +14,7 @@
#include "src/__support/macros/config.h"
#include "src/spawn/file_actions.h"
+#include "hdr/fcntl_macros.h"
#include "hdr/types/mode_t.h"
#include <signal.h> // For SIGCHLD
#include <spawn.h>
More information about the libc-commits
mailing list