summary refs log tree commit diff stats
path: root/lib/pure/sockets.nim
diff options
context:
space:
mode:
authorEric Doughty-Papassideris <eric.doughty@gmail.com>2012-01-21 15:52:04 +0100
committerEric Doughty-Papassideris <eric.doughty@gmail.com>2012-01-21 15:52:04 +0100
commit1602e8e2f4fe6b26d37ad570389ade446e593a37 (patch)
tree40711959417641792b291d3e5cb1644ed621af9f /lib/pure/sockets.nim
parente92693ec8df1c6b2e4a833e72e18037cd9880b8c (diff)
downloadNim-1602e8e2f4fe6b26d37ad570389ade446e593a37.tar.gz
MSG_NOSIGNAL not defined on mac os x
Diffstat (limited to 'lib/pure/sockets.nim')
-rwxr-xr-xlib/pure/sockets.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim
index c00dcc80b..54dc8ccd2 100755
--- a/lib/pure/sockets.nim
+++ b/lib/pure/sockets.nim
@@ -625,7 +625,7 @@ proc skip*(socket: TSocket) =
 
 proc send*(socket: TSocket, data: pointer, size: int): int =
   ## sends data to a socket.
-  when defined(windows):
+  when defined(windows) or defined(macosx):
     result = send(cint(socket), data, size, 0'i32)
   else:
     result = send(cint(socket), data, size, int32(MSG_NOSIGNAL))