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:
commit
e0d388fa28
|
|
@ -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)};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "prx/libc/include/general/VabiMacros.hpp"
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <initializer_list>
|
||||
#include <limits>
|
||||
#include <stdexcept>
|
||||
#ifndef _WIN32
|
||||
|
|
|
|||
Loading…
Reference in New Issue