From 3d4172fa77e67268d13243b7e05e4d4ea5e0d5b7 Mon Sep 17 00:00:00 2001 From: WenHan Gu Date: Thu, 20 Jun 2013 12:10:46 +0800 Subject: [PATCH] Workaround for libportable wait4 implementation. Follow https://android-review.googlesource.com/#/c/55573 and this should be revert once being solved. Change-Id: Ib9dabc1effaf59d541bc80bfce3f250a3d5fc8b2 --- ndk/sources/android/libportable/arch-mips/waitpid.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ndk/sources/android/libportable/arch-mips/waitpid.c b/ndk/sources/android/libportable/arch-mips/waitpid.c index bbf0a8a06..f1d2bcf45 100644 --- a/ndk/sources/android/libportable/arch-mips/waitpid.c +++ b/ndk/sources/android/libportable/arch-mips/waitpid.c @@ -104,6 +104,11 @@ pid_t WRAP(wait3)(int *status, int options, struct rusage *rusage) return rv; } +// FIXME: WORKAROUND after Android wait4 has been implemented +pid_t REAL(wait4)(pid_t p, int *s, int o, struct rusage *r) { + extern pid_t __wait4(pid_t, int *, int, struct rusage *); + return __wait4(p,s,o,r); +} pid_t WRAP(wait4)(pid_t pid, int *status, int options, struct rusage *rusage) {