diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-14 22:14:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-04-14 22:14:36 +0200 |
commit | c0943ac451051b734711b0c95731ae7c515dbb31 (patch) | |
tree | 88bf05eb7fa4a9f5aa91e243c01c50b94a36ab09 /miscutils | |
parent | cca4c9f4c0878b08fac6dfe014148ddcd5aa7678 (diff) |
platform.h: fix for Bionic >= 21 not having wait3()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/time.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/miscutils/time.c b/miscutils/time.c index 0006c59d8..c4bcbcbc9 100644 --- a/miscutils/time.c +++ b/miscutils/time.c @@ -33,6 +33,13 @@ #include "libbb.h" +#ifndef HAVE_WAIT3 +static pid_t wait3(int *status, int options, struct rusage *rusage) +{ + return wait4(-1, status, options, rusage); +} +#endif + /* Information on the resources used by a child process. */ typedef struct { int waitstatus; |