cvs: php-src(PHP_5_1) /sapi/cgi fastcgi.c

From: Date: Sat, 04 Feb 2006 23:54:22 +0000
Subject: cvs: php-src(PHP_5_1) /sapi/cgi fastcgi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36760@lists.php.net to get a copy of this message
fmk Sat Feb 4 23:54:22 2006 UTC Modified files: (Branch: PHP_5_1) /php-src/sapi/cgi fastcgi.c Log: Fix build on win32 http://cvs.php.net/viewcvs.cgi/php-src/sapi/cgi/fastcgi.c?r1=1.4.2.3&r2=1.4.2.4&diff_format=u Index: php-src/sapi/cgi/fastcgi.c diff -u php-src/sapi/cgi/fastcgi.c:1.4.2.3 php-src/sapi/cgi/fastcgi.c:1.4.2.4 --- php-src/sapi/cgi/fastcgi.c:1.4.2.3 Fri Feb 3 16:30:09 2006 +++ php-src/sapi/cgi/fastcgi.c Sat Feb 4 23:54:21 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fastcgi.c,v 1.4.2.3 2006/02/03 16:30:09 dmitry Exp $ */ +/* $Id: fastcgi.c,v 1.4.2.4 2006/02/04 23:54:21 fmk Exp $ */ #include "fastcgi.h" #include "php.h" @@ -623,6 +623,10 @@ int fcgi_accept_request(fcgi_request *req) { +#ifdef _WIN32 + HANDLE pipe; + OVERLAPPED ov; +#endif fcgi_finish_request(req); while (1) { @@ -632,8 +636,7 @@ return -1; } #ifdef _WIN32 - HANDLE pipe = (HANDLE)_get_osfhandle(req->listen_socket); - OVERLAPPED ov; + pipe = (HANDLE)_get_osfhandle(req->listen_socket); FCGI_LOCK(req->listen_socket); ov.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);

« previous php.cvs (#36760) next »