new osproc implementation may work with mac os x
This commit is contained in:
parent
12bac28d23
commit
c9b67f724d
3 changed files with 9 additions and 7 deletions
|
|
@ -1720,7 +1720,13 @@ when hasSpawnh:
|
|||
POSIX_SPAWN_SETSCHEDULER* {.importc, header: "<spawn.h>".}: cint
|
||||
POSIX_SPAWN_SETSIGDEF* {.importc, header: "<spawn.h>".}: cint
|
||||
POSIX_SPAWN_SETSIGMASK* {.importc, header: "<spawn.h>".}: cint
|
||||
POSIX_SPAWN_USEVFORK* {.importc, header: "<spawn.h>".}: cint
|
||||
|
||||
when defined(macosx):
|
||||
# macosx lacks this, so we define the constant to be 0 to not affect
|
||||
# OR'ing of flags:
|
||||
const POSIX_SPAWN_USEVFORK* = cint(0)
|
||||
else:
|
||||
var POSIX_SPAWN_USEVFORK* {.importc, header: "<spawn.h>".}: cint
|
||||
|
||||
when hasAioH:
|
||||
proc aio_cancel*(a1: cint, a2: ptr Taiocb): cint {.importc, header: "<aio.h>".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue