Fixed win32 build.
Added missing headers needed for wait().
Removed duplicate signal.h header.
#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
#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;