1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

LibCore: All BSDs need sig_t instead of sighandler_t

This commit is contained in:
nipos 2023-02-20 15:26:47 +00:00 committed by Andreas Kling
parent d710da108c
commit b3aa36d7bd
2 changed files with 2 additions and 2 deletions

View file

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