mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
LibCore: Use SIG_TYP instead of sig_t for signals on Solaris
This commit is contained in:
parent
d65c912c09
commit
50e663f561
Notes:
sideshowbarker
2024-07-19 16:55:54 +09:00
Author: https://github.com/ghost Commit: https://github.com/SerenityOS/serenity/commit/50e663f5610 Pull-request: https://github.com/SerenityOS/serenity/pull/17623 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/elcuco Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/linusg
2 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -93,7 +93,9 @@ ErrorOr<int> accept4(int sockfd, struct sockaddr*, socklen_t*, int flags);
|
|||
#endif
|
||||
|
||||
ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action);
|
||||
#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);
|
||||
|
|
Loading…
Add table
Reference in a new issue