From c62b204960eb4f7ff49fc56745290ee10b99b091 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 17 Feb 2015 02:33:54 +0100 Subject: Always use 0x40 for POSIX_SPAWN_USEVFORK --- lib/posix/posix.nim | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index 52bef6de4..845496756 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -1732,12 +1732,10 @@ when hasSpawnH: when defined(linux): # better be safe than sorry; Linux has this flag, macosx doesn't, don't # know about the other OSes - when defined(tcc): - # TCC doesn't define __USE_GNU, so we can't get the magic number from - # spawn.h - const POSIX_SPAWN_USEVFORK* = cint(0x40) - else: - var POSIX_SPAWN_USEVFORK* {.importc, header: "".}: cint + + # Non-GNU systems like TCC and musl-libc don't define __USE_GNU, so we + # can't get the magic number from spawn.h + const POSIX_SPAWN_USEVFORK* = cint(0x40) else: # macosx lacks this, so we define the constant to be 0 to not affect # OR'ing of flags: -- cgit 1.4.1-2-gfad0 tabs'> about summary refs log tree commit diff stats
blob: 3187cf7bc77afb1f53937d03cbed60540a8eaa24 (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
49
50
51