summary refs log tree commit diff stats
path: root/lib/posix
diff options
context:
space:
mode:
authorcheatfate <ka@hardcore.kiev.ua>2016-05-29 23:01:46 +0300
committercheatfate <ka@hardcore.kiev.ua>2016-05-29 23:01:46 +0300
commitafc922942d157837fbd651f821a89d6aef7c8db8 (patch)
tree318c5a0fca1a2b25b0e84fe0a2513d7547d43bbe /lib/posix
parent552b13efe4d65c2381d74d4fcaf9237a8730db1c (diff)
downloadNim-afc922942d157837fbd651f821a89d6aef7c8db8.tar.gz
Solaris dont have MSG_NOSIGNAL
Diffstat (limited to 'lib/posix')
-rw-r--r--lib/posix/posix.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim
index 19b068b60..24e32e10f 100644
--- a/lib/posix/posix.nim
+++ b/lib/posix/posix.nim
@@ -1621,6 +1621,10 @@ when defined(macosx):
     MSG_NOSIGNAL* = 0'i32
   var
     SO_NOSIGPIPE* {.importc, header: "<sys/socket.h>".}: cint
+elif defined(solaris):
+  # Solaris dont have MSG_NOSIGNAL
+  const
+    MSG_NOSIGNAL* = 0'i32
 else:
   var
     MSG_NOSIGNAL* {.importc, header: "<sys/socket.h>".}: cint