make net.nim compile for osx doc2
This commit is contained in:
parent
1f6b2c4d11
commit
6699387c9b
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ proc newSocket*(fd: SocketHandle, domain: Domain = AF_INET,
|
||||||
result.currPos = 0
|
result.currPos = 0
|
||||||
|
|
||||||
# Set SO_NOSIGPIPE on OS X.
|
# Set SO_NOSIGPIPE on OS X.
|
||||||
when defined(macosx):
|
when defined(macosx) and not defined(nimdoc):
|
||||||
setSockOptInt(fd, SOL_SOCKET, SO_NOSIGPIPE, 1)
|
setSockOptInt(fd, SOL_SOCKET, SO_NOSIGPIPE, 1)
|
||||||
|
|
||||||
proc newSocket*(domain, sockType, protocol: cint, buffered = true): Socket =
|
proc newSocket*(domain, sockType, protocol: cint, buffered = true): Socket =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue