Merge pull request #4555 from Xabilimon1/fix/macos-build-libkernel-getrlimit

fix(libkernel): build the fcntl status flags and the getrlimit test on macOS
This commit is contained in:
Adrià 2026-10-13 16:36:38 +02:00 committed by GitHub
commit e0d388fa28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -306,7 +306,9 @@ Entry InitialEntry(int fd) {
if (host & O_APPEND) status |= Append;
if (host & O_ASYNC) status |= Asynchronous;
if ((host & O_SYNC) == O_SYNC) status |= Synchronous;
#ifdef O_DIRECT
if (host & O_DIRECT) status |= Direct;
#endif
return {(descriptorFlags & FD_CLOEXEC) != 0, std::make_shared<int>(status)};
}

View File

@ -1,6 +1,7 @@
#include "prx/libc/include/general/VabiMacros.hpp"
#include <cstdint>
#include <cstdlib>
#include <initializer_list>
#include <limits>
#include <stdexcept>
#ifndef _WIN32