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:
|
if handle == osInvalidSocket:
|
||||||
raiseOSError(osLastError())
|
raiseOSError(osLastError())
|
||||||
handle.setBlocking(false)
|
handle.setBlocking(false)
|
||||||
when defined(macosx):
|
when defined(macosx) and not defined(nimdoc):
|
||||||
handle.setSockOptInt(SOL_SOCKET, SO_NOSIGPIPE, 1)
|
handle.setSockOptInt(SOL_SOCKET, SO_NOSIGPIPE, 1)
|
||||||
result = handle.AsyncFD
|
result = handle.AsyncFD
|
||||||
register(result)
|
register(result)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue