Commit fab12ef2 authored by Max Kellermann's avatar Max Kellermann

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

parent 917881aa
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment