Fixes web0 on Mac OS X.

This commit is contained in:
Dominik Picheta
2017-05-17 22:11:43 +01:00
parent 47076452fd
commit bf0afaf3c4

View File

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