From 8599b6042a4ba27749b0f94134dd614b4328a9bc Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 10 Jun 2024 23:45:51 -0500 Subject: [PATCH] Use SO_NONBLOCK on Haiku --- src/PlatformSockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlatformSockets.c b/src/PlatformSockets.c index 5bb6609..ee49001 100644 --- a/src/PlatformSockets.c +++ b/src/PlatformSockets.c @@ -406,7 +406,7 @@ SOCKET bindUdpSocket(int addressFamily, struct sockaddr_storage* localAddr, SOCK } int setSocketNonBlocking(SOCKET s, bool enabled) { -#if defined(__vita__) +#if defined(__vita__) || defined(__HAIKU__) int val = enabled ? 1 : 0; return setsockopt(s, SOL_SOCKET, SO_NONBLOCK, (char*)&val, sizeof(val)); #elif defined(O_NONBLOCK)