mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
LibCore: Enable receive_fd and send_fd on Haiku
This commit is contained in:
parent
cecedc57eb
commit
e028d43c67
Notes:
sideshowbarker
2024-07-19 16:51:20 +09:00
Author: https://github.com/ghost Commit: https://github.com/SerenityOS/serenity/commit/e028d43c671 Pull-request: https://github.com/SerenityOS/serenity/pull/20808 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/diversys
1 changed files with 2 additions and 2 deletions
|
@ -282,7 +282,7 @@ ErrorOr<int> LocalSocket::receive_fd(int flags)
|
||||||
{
|
{
|
||||||
#if defined(AK_OS_SERENITY)
|
#if defined(AK_OS_SERENITY)
|
||||||
return Core::System::recvfd(m_helper.fd(), flags);
|
return Core::System::recvfd(m_helper.fd(), flags);
|
||||||
#elif defined(AK_OS_LINUX) || defined(AK_OS_GNU_HURD) || defined(AK_OS_BSD_GENERIC)
|
#elif defined(AK_OS_LINUX) || defined(AK_OS_GNU_HURD) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_HAIKU)
|
||||||
union {
|
union {
|
||||||
struct cmsghdr cmsghdr;
|
struct cmsghdr cmsghdr;
|
||||||
char control[CMSG_SPACE(sizeof(int))];
|
char control[CMSG_SPACE(sizeof(int))];
|
||||||
|
@ -323,7 +323,7 @@ ErrorOr<void> LocalSocket::send_fd(int fd)
|
||||||
{
|
{
|
||||||
#if defined(AK_OS_SERENITY)
|
#if defined(AK_OS_SERENITY)
|
||||||
return Core::System::sendfd(m_helper.fd(), fd);
|
return Core::System::sendfd(m_helper.fd(), fd);
|
||||||
#elif defined(AK_OS_LINUX) || defined(AK_OS_GNU_HURD) || defined(AK_OS_BSD_GENERIC)
|
#elif defined(AK_OS_LINUX) || defined(AK_OS_GNU_HURD) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_HAIKU)
|
||||||
char c = 'F';
|
char c = 'F';
|
||||||
struct iovec iov {
|
struct iovec iov {
|
||||||
.iov_base = &c,
|
.iov_base = &c,
|
||||||
|
|
Loading…
Add table
Reference in a new issue