summaryrefslogtreecommitdiff
path: root/miscutils/time.c
diff options
context:
space:
mode:
authorDenys Vlasenko2021-04-14 22:14:36 +0200
committerDenys Vlasenko2021-04-14 22:14:36 +0200
commitc0943ac451051b734711b0c95731ae7c515dbb31 (patch)
tree88bf05eb7fa4a9f5aa91e243c01c50b94a36ab09 /miscutils/time.c
parentcca4c9f4c0878b08fac6dfe014148ddcd5aa7678 (diff)
downloadbusybox-c0943ac451051b734711b0c95731ae7c515dbb31.zip
busybox-c0943ac451051b734711b0c95731ae7c515dbb31.tar.gz
platform.h: fix for Bionic >= 21 not having wait3()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/time.c')
-rw-r--r--miscutils/time.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/miscutils/time.c b/miscutils/time.c
index 0006c59..c4bcbcb 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;