Fixes web0 on Mac OS X.
This commit is contained in:
parent
47076452fd
commit
bf0afaf3c4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue