platform.h: fix for Bionic >= 21 not having wait3()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2021-04-14 22:14:36 +02:00
parent cca4c9f4c0
commit c0943ac451
2 changed files with 11 additions and 0 deletions

View file

@ -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;