diff options
Diffstat (limited to 'gnu/usr.bin/cvs/lib/waitpid.c')
-rw-r--r-- | gnu/usr.bin/cvs/lib/waitpid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/cvs/lib/waitpid.c b/gnu/usr.bin/cvs/lib/waitpid.c index e8ddeb8a85a..02d6acb29f4 100644 --- a/gnu/usr.bin/cvs/lib/waitpid.c +++ b/gnu/usr.bin/cvs/lib/waitpid.c @@ -63,7 +63,11 @@ pid_t waitpid (pid, status, options) while (1) { +#ifdef HAVE_WAIT3 pid_t p = wait3 (status, options, (struct rusage *) 0); +#else + pid_t p = wait (status); +#endif if (p == 0 || p == -1 || p == pid) return p; |