diff options
author | Frank M. Kromann <fmk@php.net> | 2006-02-04 23:54:21 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2006-02-04 23:54:21 +0000 |
commit | 5e673e0639905cd630d4898ea92b4ff33e8a1106 (patch) | |
tree | 88b82bc491234de4109c11bdface8a68088f9d9f /sapi/cgi/fastcgi.c | |
parent | c3c092bba6c0005813ce7683999c8ebef0c7f5b2 (diff) | |
download | php-git-5e673e0639905cd630d4898ea92b4ff33e8a1106.tar.gz |
Fix build on win32
Diffstat (limited to 'sapi/cgi/fastcgi.c')
-rw-r--r-- | sapi/cgi/fastcgi.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sapi/cgi/fastcgi.c b/sapi/cgi/fastcgi.c index d616592391..5051898c10 100644 --- a/sapi/cgi/fastcgi.c +++ b/sapi/cgi/fastcgi.c @@ -623,6 +623,10 @@ static inline void fcgi_close(fcgi_request *req, int force, int destroy) int fcgi_accept_request(fcgi_request *req) { +#ifdef _WIN32 + HANDLE pipe; + OVERLAPPED ov; +#endif fcgi_finish_request(req); while (1) { @@ -632,8 +636,7 @@ int fcgi_accept_request(fcgi_request *req) 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); |