diff --git a/libc/src/fcntl/linux/CMakeLists.txt b/libc/src/fcntl/linux/CMakeLists.txt index ecfb2cdd3f336..580db16cd4132 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 9f3d035388e86..8b699ecdd2043 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 #include // For syscall numbers. diff --git a/libc/src/spawn/linux/CMakeLists.txt b/libc/src/spawn/linux/CMakeLists.txt index 5f7ab4c43165d..26148fe1c76db 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 d6caf8b374a02..fe82ba260148a 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 // For SIGCHLD #include