mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
sockets.nim: bugfix for solaris
This commit is contained in:
@@ -1297,6 +1297,8 @@ 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):
|
||||
const MSG_NOSIGNAL = 0
|
||||
result = send(socket.fd, data, size, int32(MSG_NOSIGNAL))
|
||||
|
||||
proc send*(socket: TSocket, data: string) {.tags: [FWriteIO].} =
|
||||
|
||||
Reference in New Issue
Block a user