From: Ilia Alshanetsky Date: Tue, 10 Feb 2004 17:44:44 +0000 (+0000) Subject: MFH: X-Git-Tag: php-4.3.5RC3~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=353b838a13e85562027908c22aece8ed7de28de4;p=php MFH: Fixed win32 build. Added missing headers needed for wait(). Removed duplicate signal.h header. --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 08619044f6..e8e43c1e2b 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -48,6 +48,12 @@ #if HAVE_SETLOCALE #include #endif +#if HAVE_SYS_TYPES_H +#include +#endif +#if HAVE_SYS_WAIT_H +#include +#endif #include "zend.h" #include "zend_extensions.h" #include "php_ini.h" @@ -61,10 +67,6 @@ #include "win32/php_registry.h" #endif -#if HAVE_SIGNAL_H -#include -#endif - #ifdef __riscos__ #include #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;