mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
LibCore: All BSDs need sig_t instead of sighandler_t
This commit is contained in:
parent
d710da108c
commit
b3aa36d7bd
Notes:
sideshowbarker
2024-07-19 16:56:39 +09:00
Author: https://github.com/ghost Commit: https://github.com/SerenityOS/serenity/commit/b3aa36d7bd5 Pull-request: https://github.com/SerenityOS/serenity/pull/17548
@ -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)
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user