From aeba1d31b7962c398fbe2d969466a05a723a5698 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 2 Aug 2018 15:12:59 +0200 Subject: [PATCH] Fix build error with GCC v7.3, wait3() takes an int *status Signed-off-by: Joachim Nilsson --- syslogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syslogd.c b/syslogd.c index 185fc03..b7527e7 100644 --- a/syslogd.c +++ b/syslogd.c @@ -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) ;