diff options
author | cheatfate <ka@hardcore.kiev.ua> | 2016-05-29 23:01:46 +0300 |
---|---|---|
committer | cheatfate <ka@hardcore.kiev.ua> | 2016-05-29 23:01:46 +0300 |
commit | afc922942d157837fbd651f821a89d6aef7c8db8 (patch) | |
tree | 318c5a0fca1a2b25b0e84fe0a2513d7547d43bbe /lib/posix | |
parent | 552b13efe4d65c2381d74d4fcaf9237a8730db1c (diff) | |
download | Nim-afc922942d157837fbd651f821a89d6aef7c8db8.tar.gz |
Solaris dont have MSG_NOSIGNAL
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 4 |
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 |