From afc922942d157837fbd651f821a89d6aef7c8db8 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Sun, 29 May 2016 23:01:46 +0300 Subject: [PATCH] Solaris dont have MSG_NOSIGNAL --- lib/posix/posix.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index 19b068b601..24e32e10fa 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: "".}: cint +elif defined(solaris): + # Solaris dont have MSG_NOSIGNAL + const + MSG_NOSIGNAL* = 0'i32 else: var MSG_NOSIGNAL* {.importc, header: "".}: cint