diff --git a/tools/include/nolibc/fcntl.h b/tools/include/nolibc/fcntl.h index 56650a36f856..014910a8e928 100644 --- a/tools/include/nolibc/fcntl.h +++ b/tools/include/nolibc/fcntl.h @@ -29,6 +29,8 @@ int openat(int dirfd, const char *path, int flags, ...) { mode_t mode = 0; + flags |= O_LARGEFILE; + if (flags & O_CREAT) { va_list args; @@ -55,6 +57,8 @@ int open(const char *path, int flags, ...) { mode_t mode = 0; + flags |= O_LARGEFILE; + if (flags & O_CREAT) { va_list args;