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
Notes: sideshowbarker 2024-07-19 16:56:39 +09:00
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 {}; 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) ErrorOr<sig_t> signal(int signal, sig_t handler)
#else #else
ErrorOr<sighandler_t> signal(int signal, sighandler_t handler) ErrorOr<sighandler_t> signal(int signal, sighandler_t handler)

View File

@ -93,7 +93,7 @@ ErrorOr<int> accept4(int sockfd, struct sockaddr*, socklen_t*, int flags);
#endif #endif
ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action); ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action);
#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); ErrorOr<sig_t> signal(int signal, sig_t handler);
#else #else
ErrorOr<sighandler_t> signal(int signal, sighandler_t handler); ErrorOr<sighandler_t> signal(int signal, sighandler_t handler);