mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-02-16 02:21:07 +00:00
Use SO_NONBLOCK on Haiku
This commit is contained in:
@@ -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