termux-packages/packages/fex/Source-Tests-LinuxSyscalls-Syscalls-Thread.cpp.patch
2022-01-15 13:45:04 +02:00

12 lines
524 B
Diff

--- a/Source/Tests/LinuxSyscalls/Syscalls/Thread.cpp
+++ b/Source/Tests/LinuxSyscalls/Syscalls/Thread.cpp
@@ -465,7 +465,7 @@
});
REGISTER_SYSCALL_IMPL_PASS(prlimit64, [](FEXCore::Core::CpuStateFrame *Frame, pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit) -> uint64_t {
- uint64_t Result = ::prlimit(pid, (enum __rlimit_resource)(resource), new_limit, old_limit);
+ uint64_t Result = ::prlimit(pid, resource, new_limit, old_limit);
SYSCALL_ERRNO();
});