diff --git a/src/net/SocketDescriptor.cxx b/src/net/SocketDescriptor.cxx index 6df31c95a..1af100bc9 100644 --- a/src/net/SocketDescriptor.cxx +++ b/src/net/SocketDescriptor.cxx @@ -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