Quellcode durchsuchen

LibCore: Enable file descriptor passing on all BSDs

nipos vor 2 Jahren
Ursprung
Commit
9a77934e23
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      Userland/Libraries/LibCore/Socket.cpp

+ 2 - 2
Userland/Libraries/LibCore/Socket.cpp

@@ -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_MACOS) || defined(AK_OS_FREEBSD) || defined(AK_OS_OPENBSD)
+#elif defined(AK_OS_LINUX) || defined(AK_OS_BSD_GENERIC)
     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_MACOS) || defined(AK_OS_FREEBSD) || defined(AK_OS_OPENBSD)
+#elif defined(AK_OS_LINUX) || defined(AK_OS_BSD_GENERIC)
     char c = 'F';
     char c = 'F';
     struct iovec iov {
     struct iovec iov {
         .iov_base = &c,
         .iov_base = &c,