Fix build error with GCC v7.3, wait3() takes an int *status

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2018-08-02 15:12:59 +02:00
parent 9abddd6b55
commit aeba1d31b7

View File

@ -2171,7 +2171,7 @@ void reapchild()
(void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */
wait ((int *)0);
#else
union wait status;
int status;
while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0)
;