mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 01:21:47 +00:00
Handle errors.
This commit is contained in:
parent
0b729e1707
commit
b01fc8b4f7
@ -31,7 +31,7 @@ static bool socket_nonblock(int fd)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
u_long mode = 1;
|
||||
ioctlsocket(fd, FIONBIO, &mode);
|
||||
return ioctlsocket(fd, FIONBIO, &mode) == 0;
|
||||
#else
|
||||
return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK) == 0;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user