aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2006-05-10 06:14:13 +0000
committerAlex Dupre <ale@FreeBSD.org>2006-05-10 06:14:13 +0000
commit435368a8644d8d5a39a088de2fb2e40c6a040ed3 (patch)
tree7505658c54d6c5f09cf2f5701f5b535720cb8455 /lang
parent405b0e7bf040684687dc769868b86a44599f0345 (diff)
downloadports-435368a8644d8d5a39a088de2fb2e40c6a040ed3.tar.gz
ports-435368a8644d8d5a39a088de2fb2e40c6a040ed3.zip
Notes
Diffstat (limited to 'lang')
-rw-r--r--lang/php5/files/patch-sapi_cgi_fastcgi.c22
-rw-r--r--lang/php53/files/patch-sapi_cgi_fastcgi.c22
2 files changed, 44 insertions, 0 deletions
diff --git a/lang/php5/files/patch-sapi_cgi_fastcgi.c b/lang/php5/files/patch-sapi_cgi_fastcgi.c
new file mode 100644
index 000000000000..f8195b2a86f2
--- /dev/null
+++ b/lang/php5/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);
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 000000000000..f8195b2a86f2
--- /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);