]> granicus.if.org Git - php/commitdiff
MFH:
authorIlia Alshanetsky <iliaa@php.net>
Tue, 10 Feb 2004 17:44:44 +0000 (17:44 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 10 Feb 2004 17:44:44 +0000 (17:44 +0000)
Fixed win32 build.
Added missing headers needed for wait().
Removed duplicate signal.h header.

sapi/cgi/cgi_main.c

index 08619044f622dda43141265e24b4b3b1b99f0dc7..e8e43c1e2b822410cf61cd942f9ad17101aedca9 100644 (file)
 #if HAVE_SETLOCALE
 #include <locale.h>
 #endif
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 #include "zend.h"
 #include "zend_extensions.h"
 #include "php_ini.h"
 #include "win32/php_registry.h"
 #endif
 
-#if HAVE_SIGNAL_H
-#include <signal.h>
-#endif
-
 #ifdef __riscos__
 #include <unixlib/local.h>
 #endif
@@ -275,7 +277,11 @@ static void sapi_cgibin_flush(void *server_context)
 #if PHP_FASTCGI
        if (!FCGX_IsCGI()) {
                FCGX_Request *request = (FCGX_Request *)server_context;
-               if (!parent && (!request || FCGX_FFlush(request->out) == -1)) {
+               if (
+#ifdef PHP_WIN32
+               !parent && 
+#endif
+               (!request || FCGX_FFlush(request->out) == -1)) {
                        php_handle_aborted_connection();
                }
                return;