aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php53/files/patch-sapi_cgi_fastcgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php53/files/patch-sapi_cgi_fastcgi.c')
-rw-r--r--lang/php53/files/patch-sapi_cgi_fastcgi.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/php53/files/patch-sapi_cgi_fastcgi.c b/lang/php53/files/patch-sapi_cgi_fastcgi.c
new file mode 100644
index 00000000000..f8195b2a86f
--- /dev/null
+++ b/lang/php53/files/patch-sapi_cgi_fastcgi.c
@@ -0,0 +1,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);