mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-22 16:17:42 +00:00
Use SO_NONBLOCK on Haiku
This commit is contained in:
1 parent
e49637d153
commit
8599b6042a
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user