summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-05-29 22:22:05 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-05-29 22:22:05 +0200
commit7bf7c4d49e7d6089444e694cd832205d51a26041 (patch)
tree945a684da9c9c454a1f609c97d2f6ca7b02ab3e1
parent380524caa8f3fe63fa091755df2c101fd9a5d6d9 (diff)
parentafc922942d157837fbd651f821a89d6aef7c8db8 (diff)
downloadNim-7bf7c4d49e7d6089444e694cd832205d51a26041.tar.gz
Merge pull request #4235 from cheatfate/nosignal
Solaris dont have MSG_NOSIGNAL
-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 f79e6491e..b63a41460 100644
--- a/lib/posix/posix.nim
+++ b/lib/posix/posix.nim
@@ -1623,6 +1623,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