sockets: proper bugfix for solaris
This commit is contained in:
parent
d0de1fc336
commit
476f6fc8ee
1 changed files with 1 additions and 1 deletions
|
|
@ -1299,7 +1299,7 @@ proc send*(socket: TSocket, data: pointer, size: int): int {.
|
|||
when defined(windows) or defined(macosx):
|
||||
result = send(socket.fd, data, size.cint, 0'i32)
|
||||
else:
|
||||
when not defined(MSG_NOSIGNAL):
|
||||
when defined(solaris):
|
||||
const MSG_NOSIGNAL = 0
|
||||
result = send(socket.fd, data, size, int32(MSG_NOSIGNAL))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue