net/SocketDescriptor: call SetNonBlocking() on Linux if SOCK_NONBLOCK unavailable

This commit is contained in:
Max Kellermann 2017-08-10 13:16:25 +02:00
parent 917881aa48
commit fab12ef241

View File

@ -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