platform.h: fix for Bionic >= 21 not having wait3()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user