summaryrefslogtreecommitdiff
path: root/lang/php53/files/patch-sapi_cgi_fastcgi.c
blob: f8195b2a86f27a0dcbf11b56b14b2cab9d1fe06e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- sapi/cgi/fastcgi.c.orig	Wed May 10 08:04:51 2006
+++ sapi/cgi/fastcgi.c	Wed May 10 08:07:04 2006
@@ -633,6 +633,9 @@
 #ifdef _WIN32
 	HANDLE pipe;
 	OVERLAPPED ov;
+#else
+	sa_t sa;
+	socklen_t len = sizeof(sa);
 #endif
 	fcgi_finish_request(req);
 
@@ -669,9 +672,6 @@
 				}
 				FCGI_UNLOCK(req->listen_socket);
 #else
-				sa_t sa;
-				socklen_t len = sizeof(sa);
-
 				FCGI_LOCK(req->listen_socket);
 				req->fd = accept(req->listen_socket, (struct sockaddr *)&sa, &len);
 				FCGI_UNLOCK(req->listen_socket);