diff options
Diffstat (limited to '9/platforms/android-8/arch-arm/usr/include/sys/wait.h')
-rw-r--r-- | 9/platforms/android-8/arch-arm/usr/include/sys/wait.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/9/platforms/android-8/arch-arm/usr/include/sys/wait.h b/9/platforms/android-8/arch-arm/usr/include/sys/wait.h index d49684c..e720c2c 100644 --- a/9/platforms/android-8/arch-arm/usr/include/sys/wait.h +++ b/9/platforms/android-8/arch-arm/usr/include/sys/wait.h @@ -32,6 +32,9 @@ #include <sys/types.h> #include <sys/resource.h> #include <linux/wait.h> +#include <asm/unistd.h> +#include <sys/syscall.h> + __BEGIN_DECLS @@ -47,10 +50,9 @@ __BEGIN_DECLS extern pid_t wait(int *); extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); -static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r) +static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) { - extern pid_t __wait4(pid_t, int *, int, struct rusage *); - return __wait4(p,s,o,r); + return (pid_t)syscall(__NR_wait4, pid, status, options, rusage); } __END_DECLS |