Skip to content

Commit

Permalink
Use SO_NONBLOCK on Haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Jun 11, 2024
1 parent e49637d commit 8599b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlatformSockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8599b60

Please sign in to comment.