Always use 0x40 for POSIX_SPAWN_USEVFORK
This commit is contained in:
parent
5668ab3a49
commit
c62b204960
1 changed files with 4 additions and 6 deletions
|
|
@ -1732,12 +1732,10 @@ when hasSpawnH:
|
||||||
when defined(linux):
|
when defined(linux):
|
||||||
# better be safe than sorry; Linux has this flag, macosx doesn't, don't
|
# better be safe than sorry; Linux has this flag, macosx doesn't, don't
|
||||||
# know about the other OSes
|
# know about the other OSes
|
||||||
when defined(tcc):
|
|
||||||
# TCC doesn't define __USE_GNU, so we can't get the magic number from
|
# Non-GNU systems like TCC and musl-libc don't define __USE_GNU, so we
|
||||||
# spawn.h
|
# can't get the magic number from spawn.h
|
||||||
const POSIX_SPAWN_USEVFORK* = cint(0x40)
|
const POSIX_SPAWN_USEVFORK* = cint(0x40)
|
||||||
else:
|
|
||||||
var POSIX_SPAWN_USEVFORK* {.importc, header: "<spawn.h>".}: cint
|
|
||||||
else:
|
else:
|
||||||
# macosx lacks this, so we define the constant to be 0 to not affect
|
# macosx lacks this, so we define the constant to be 0 to not affect
|
||||||
# OR'ing of flags:
|
# OR'ing of flags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue