From afc922942d157837fbd651f821a89d6aef7c8db8 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Sun, 29 May 2016 23:01:46 +0300 Subject: 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 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: "".}: cint +elif defined(solaris): + # Solaris dont have MSG_NOSIGNAL + const + MSG_NOSIGNAL* = 0'i32 else: var MSG_NOSIGNAL* {.importc, header: "".}: cint -- cgit 1.4.1-2-gfad0 1e45'/> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
blob: d45afb0a23012cefeeff36fb2f2cf01a9d741d1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48