Merge pull request #4235 from cheatfate/nosignal

Solaris dont have MSG_NOSIGNAL
This commit is contained in:
Andreas Rumpf 2016-05-29 22:22:05 +02:00
commit 7bf7c4d49e

View file

@ -1623,6 +1623,10 @@ when defined(macosx):
MSG_NOSIGNAL* = 0'i32 MSG_NOSIGNAL* = 0'i32
var var
SO_NOSIGPIPE* {.importc, header: "<sys/socket.h>".}: cint SO_NOSIGPIPE* {.importc, header: "<sys/socket.h>".}: cint
elif defined(solaris):
# Solaris dont have MSG_NOSIGNAL
const
MSG_NOSIGNAL* = 0'i32
else: else:
var var
MSG_NOSIGNAL* {.importc, header: "<sys/socket.h>".}: cint MSG_NOSIGNAL* {.importc, header: "<sys/socket.h>".}: cint