mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
make net.nim compile for osx doc2
This commit is contained in:
@@ -206,7 +206,7 @@ proc newSocket*(fd: SocketHandle, domain: Domain = AF_INET,
|
||||
result.currPos = 0
|
||||
|
||||
# Set SO_NOSIGPIPE on OS X.
|
||||
when defined(macosx):
|
||||
when defined(macosx) and not defined(nimdoc):
|
||||
setSockOptInt(fd, SOL_SOCKET, SO_NOSIGPIPE, 1)
|
||||
|
||||
proc newSocket*(domain, sockType, protocol: cint, buffered = true): Socket =
|
||||
|
||||
Reference in New Issue
Block a user