[libc-commits] [libc] [libc] add the rest of the hdr/fcntl_macro.h headers (PR #113972)
via libc-commits
libc-commits at lists.llvm.org
Mon Oct 28 15:25:58 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Job Henandez Lara (Jobhdez)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/113972.diff
4 Files Affected:
- (modified) libc/src/fcntl/linux/CMakeLists.txt (+1)
- (modified) libc/src/fcntl/linux/open.cpp (+1)
- (modified) libc/src/spawn/linux/CMakeLists.txt (+1)
- (modified) libc/src/spawn/linux/posix_spawn.cpp (+1)
``````````diff
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>
``````````
</details>
https://github.com/llvm/llvm-project/pull/113972
More information about the libc-commits
mailing list