diff options
author | nipos <ni.pos@yandex.com> | 2023-02-20 15:36:32 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-20 18:46:36 +0100 |
commit | 9a77934e231313c71a767980d9705a8686eaebf6 (patch) | |
tree | 8a7426cabdccbdbe0a298030702d213cd8dcca40 /Userland/Libraries | |
parent | 5b147f29abf76e5d76740644235c65aa92eb601a (diff) | |
download | serenity-9a77934e231313c71a767980d9705a8686eaebf6.zip |
LibCore: Enable file descriptor passing on all BSDs
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibCore/Socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/Socket.cpp b/Userland/Libraries/LibCore/Socket.cpp index d32577f9ee..c6be2ad77c 100644 --- a/Userland/Libraries/LibCore/Socket.cpp +++ b/Userland/Libraries/LibCore/Socket.cpp @@ -282,7 +282,7 @@ ErrorOr<int> LocalSocket::receive_fd(int flags) { #if defined(AK_OS_SERENITY) return Core::System::recvfd(m_helper.fd(), flags); -#elif defined(AK_OS_LINUX) || defined(AK_OS_MACOS) || defined(AK_OS_FREEBSD) || defined(AK_OS_OPENBSD) +#elif defined(AK_OS_LINUX) || defined(AK_OS_BSD_GENERIC) union { struct cmsghdr cmsghdr; char control[CMSG_SPACE(sizeof(int))]; @@ -323,7 +323,7 @@ ErrorOr<void> LocalSocket::send_fd(int fd) { #if defined(AK_OS_SERENITY) return Core::System::sendfd(m_helper.fd(), fd); -#elif defined(AK_OS_LINUX) || defined(AK_OS_MACOS) || defined(AK_OS_FREEBSD) || defined(AK_OS_OPENBSD) +#elif defined(AK_OS_LINUX) || defined(AK_OS_BSD_GENERIC) char c = 'F'; struct iovec iov { .iov_base = &c, |