diff options
-rw-r--r-- | sysdeps/unix/sysv/linux/waitid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/waitid.c b/sysdeps/unix/sysv/linux/waitid.c index 8dcee0c..21226df 100644 --- a/sysdeps/unix/sysv/linux/waitid.c +++ b/sysdeps/unix/sysv/linux/waitid.c @@ -30,7 +30,9 @@ static inline int do_waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options) { - return INLINE_SYSCALL (waitid, 4, idtype, id, infop, options); + /* The unused fifth argument is a `struct rusage *' that we could + pass if we were using waitid to simulate wait3/wait4. */ + return INLINE_SYSCALL (waitid, 5, idtype, id, infop, options, NULL); } # define NO_DO_WAITID |