mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 19:00:17 +02:00
Signals: Preprocessor disable intentional dead code in userfaultfd
Noticed this when going through the syscalls. Avoids potential warnings.
This commit is contained in:
1 parent
bc16f902d1
commit
ca2d2520d2
1 file changed
+2
@@ -43,8 +43,10 @@ void RegisterSignals(FEX::HLE::SyscallHandler* Handler) {
|
||||
// Disable userfaultfd until we can properly emulate it
|
||||
// This is okay because the kernel configuration allows you to disable it at compile time
|
||||
return -ENOSYS;
|
||||
#if 0
|
||||
uint64_t Result = ::syscall(SYSCALL_DEF(userfaultfd), flags);
|
||||
SYSCALL_ERRNO();
|
||||
#endif
|
||||
});
|
||||
|
||||
REGISTER_SYSCALL_IMPL(signalfd, [](FEXCore::Core::CpuStateFrame* Frame, int fd, const uint64_t* mask, size_t sigsetsize) -> uint64_t {
|
||||
|
||||
Reference in new issue
Block a user