1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibCore: Use accept instead of accept4 on Haiku

This commit is contained in:
nipos 2023-08-27 21:11:12 +02:00 committed by Andrew Kaster
parent ee5b851f70
commit 0816bbe727
4 changed files with 6 additions and 6 deletions

View file

@ -380,7 +380,7 @@ ErrorOr<Optional<struct spwd>> getspnam(StringView name)
}
#endif
#ifndef AK_OS_MACOS
#if !defined(AK_OS_MACOS) && !defined(AK_OS_HAIKU)
ErrorOr<int> accept4(int sockfd, sockaddr* address, socklen_t* address_length, int flags)
{
auto fd = ::accept4(sockfd, address, address_length, flags);