Signals: Preprocessor disable intentional dead code in userfaultfd

Noticed this when going through the syscalls. Avoids potential warnings.
This commit is contained in:
LC committed 2026-07-12 12:16:07 -04:00
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 {