From bf0afaf3c4a7f901a525cbb035d6421a2f30bfe8 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Wed, 17 May 2017 22:11:43 +0100 Subject: [PATCH] Fixes web0 on Mac OS X. --- lib/pure/includes/asynccommon.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/includes/asynccommon.nim b/lib/pure/includes/asynccommon.nim index a7d2f803fd..8b760c66a1 100644 --- a/lib/pure/includes/asynccommon.nim +++ b/lib/pure/includes/asynccommon.nim @@ -3,7 +3,7 @@ template newAsyncNativeSocketImpl(domain, sockType, protocol) = if handle == osInvalidSocket: raiseOSError(osLastError()) handle.setBlocking(false) - when defined(macosx): + when defined(macosx) and not defined(nimdoc): handle.setSockOptInt(SOL_SOCKET, SO_NOSIGPIPE, 1) result = handle.AsyncFD register(result)