net/SocketDescriptor: call SetNonBlocking() on Linux if SOCK_NONBLOCK unavailable
This commit is contained in:
parent
917881aa48
commit
fab12ef241
@ -124,7 +124,7 @@ SocketDescriptor::CreateNonBlock(int domain, int type, int protocol)
|
||||
if (!Create(domain, type, protocol))
|
||||
return false;
|
||||
|
||||
#ifndef __linux__
|
||||
#ifndef SOCK_NONBLOCK
|
||||
SetNonBlocking();
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user