diff options
author | modk <github@modk.org> | 2015-01-26 00:06:43 +0100 |
---|---|---|
committer | modk <github@modk.org> | 2015-01-26 00:06:43 +0100 |
commit | 601b262a8dc98b36f06585bd432396af85981a99 (patch) | |
tree | 412709bf2b31e0b559c8ca827b2dc5097a10675e /lib/posix | |
parent | 67e489d4e5a1534e19a0d0a507be874acd64815b (diff) | |
download | Nim-601b262a8dc98b36f06585bd432396af85981a99.tar.gz |
Fixes parallel build on FreeBSD
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index d56adf7f5..fbd07ca25 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -1405,14 +1405,6 @@ var ## Report status of stopped child process. WEXITSTATUS* {.importc, header: "<sys/wait.h>".}: cint ## Return exit status. - WIFCONTINUED* {.importc, header: "<sys/wait.h>".}: cint - ## True if child has been continued. - WIFEXITED* {.importc, header: "<sys/wait.h>".}: cint - ## True if child exited normally. - WIFSIGNALED* {.importc, header: "<sys/wait.h>".}: cint - ## True if child exited due to uncaught signal. - WIFSTOPPED* {.importc, header: "<sys/wait.h>".}: cint - ## True if child is currently stopped. WSTOPSIG* {.importc, header: "<sys/wait.h>".}: cint ## Return signal number that caused process to stop. WTERMSIG* {.importc, header: "<sys/wait.h>".}: cint @@ -1559,6 +1551,14 @@ var MSG_OOB* {.importc, header: "<sys/socket.h>".}: cint ## Out-of-band data. +proc WIFCONTINUED*(s:cint) : bool {.importc, header: "<sys/wait.h>".} + ## True if child has been continued. +proc WIFEXITED*(s:cint) : bool {.importc, header: "<sys/wait.h>".} + ## True if child exited normally. +proc WIFSIGNALED*(s:cint) : bool {.importc, header: "<sys/wait.h>".} + ## True if child exited due to uncaught signal. +proc WIFSTOPPED*(s:cint) : bool {.importc, header: "<sys/wait.h>".} + ## True if child is currently stopped. when defined(linux): var |