parent
af591544c5
commit
9048bcc54b
1 changed files with 1 additions and 1 deletions
|
|
@ -960,7 +960,7 @@ when defined(posix) and not defined(nimdoc):
|
|||
raise newException(ValueError, "socket path too long")
|
||||
copyMem(addr result.sun_path, path.cstring, path.len + 1)
|
||||
|
||||
when defined(posix):
|
||||
when defined(posix) or defined(nimdoc):
|
||||
proc connectUnix*(socket: Socket, path: string) =
|
||||
## Connects to Unix socket on `path`.
|
||||
## This only works on Unix-style systems: Mac OS X, BSD and Linux
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue