LibCore: Use SIG_TYP instead of sig_t for signals on Solaris

This commit is contained in:
nipos 2023-02-25 18:50:03 +01:00 committed by Andrew Kaster
commit 50e663f561
Notes: sideshowbarker 2024-07-19 16:55:54 +09:00
2 changed files with 6 additions and 2 deletions

View file

@ -330,7 +330,9 @@ ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigac
return {};
}
#if defined(AK_OS_BSD_GENERIC)
#if defined(AK_OS_SOLARIS)
ErrorOr<SIG_TYP> signal(int signal, SIG_TYP handler)
#elif defined(AK_OS_BSD_GENERIC)
ErrorOr<sig_t> signal(int signal, sig_t handler)
#else
ErrorOr<sighandler_t> signal(int signal, sighandler_t handler)