fmk             Sat Feb  4 23:58:22 2006 UTC

  Modified files:              
    /php-src/sapi/cgi   fastcgi.c 
  Log:
  MFB51 Fix build on win32
  
http://cvs.php.net/viewcvs.cgi/php-src/sapi/cgi/fastcgi.c?r1=1.5&r2=1.6&diff_format=u
Index: php-src/sapi/cgi/fastcgi.c
diff -u php-src/sapi/cgi/fastcgi.c:1.5 php-src/sapi/cgi/fastcgi.c:1.6
--- php-src/sapi/cgi/fastcgi.c:1.5      Fri Feb  3 16:30:27 2006
+++ php-src/sapi/cgi/fastcgi.c  Sat Feb  4 23:58:22 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: fastcgi.c,v 1.5 2006/02/03 16:30:27 dmitry Exp $ */
+/* $Id: fastcgi.c,v 1.6 2006/02/04 23:58:22 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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to