From fab12ef2415138794692187d769e14c589da7b94 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Aug 2017 13:16:25 +0200 Subject: [PATCH] net/SocketDescriptor: call SetNonBlocking() on Linux if SOCK_NONBLOCK unavailable --- src/net/SocketDescriptor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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