]> granicus.if.org Git - php/commitdiff
fix the fix (it's still a hack)
authorThies C. Arntzen <thies@php.net>
Fri, 19 May 2000 10:48:05 +0000 (10:48 +0000)
committerThies C. Arntzen <thies@php.net>
Fri, 19 May 2000 10:48:05 +0000 (10:48 +0000)
main/main.c

index 93a60a048f9510debb595ced114e53a783b92c2c..3b039fc7bc2f80a066ced48e2247648bc57cf09f 100644 (file)
 #include <syslog.h>
 #endif
 
+#if PHP_SIGCHILD
+#include <sys/types.h>
+#include <sys/wait.h>
+#endif
+
 #include "zend_compile.h"
 #include "zend_execute.h"
 #include "zend_highlight.h"
@@ -638,7 +643,7 @@ static void php_message_handler_for_zend(long message, void *data)
 
 
 #if PHP_SIGCHILD
-static int sigchld_handler(int apar)
+static void sigchld_handler(int apar)
 {
     while (waitpid(-1, NULL, WNOHANG) > 0)
                ;