Skip to content

Commit

Permalink
vita: ifdef out common os_InstallFaultHandler/os_UninstallFaultHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Mar 13, 2024
1 parent d703d62 commit 8c7cbca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/linux/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ void fault_handler(int sn, siginfo_t * si, void *segfault_ctx)
}
#undef HOST_CTX_READY

#if !defined(__vita__)
void os_InstallFaultHandler()
{
#if !defined(__SWITCH__) && !defined(__vita__)
#if !defined(__SWITCH__)
struct sigaction act;
memset(&act, 0, sizeof(act));
act.sa_sigaction = fault_handler;
Expand All @@ -103,13 +104,14 @@ void os_InstallFaultHandler()

void os_UninstallFaultHandler()
{
#if !defined(__SWITCH__) && !defined(__vita__)
#if !defined(__SWITCH__)
sigaction(SIGSEGV, &next_segv_handler, nullptr);
#endif
#if defined(__APPLE__)
sigaction(SIGBUS, &next_bus_handler, nullptr);
#endif
}
#endif

#elif !defined(__vita__) // !defined(TARGET_NO_EXCEPTIONS)

Expand Down

0 comments on commit 8c7cbca

Please sign in to comment.