platform.h: fix for Bionic >= 21 not having wait3()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cca4c9f4c0
commit
c0943ac451
2 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue