Use SO_NONBLOCK on Haiku
This commit is contained in:
parent
e49637d153
commit
8599b6042a
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ SOCKET bindUdpSocket(int addressFamily, struct sockaddr_storage* localAddr, SOCK
|
||||||
}
|
}
|
||||||
|
|
||||||
int setSocketNonBlocking(SOCKET s, bool enabled) {
|
int setSocketNonBlocking(SOCKET s, bool enabled) {
|
||||||
#if defined(__vita__)
|
#if defined(__vita__) || defined(__HAIKU__)
|
||||||
int val = enabled ? 1 : 0;
|
int val = enabled ? 1 : 0;
|
||||||
return setsockopt(s, SOL_SOCKET, SO_NONBLOCK, (char*)&val, sizeof(val));
|
return setsockopt(s, SOL_SOCKET, SO_NONBLOCK, (char*)&val, sizeof(val));
|
||||||
#elif defined(O_NONBLOCK)
|
#elif defined(O_NONBLOCK)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue