diff options
author | ale <ale@FreeBSD.org> | 2006-05-10 14:14:13 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2006-05-10 14:14:13 +0800 |
commit | 7d25631fb79fa139ede7fbf83788c83fc7f51122 (patch) | |
tree | 75e40ae201f0d07600a86ee0eadf5e6a21887299 /lang | |
parent | 63aa65cd65d3e4b9912f952a8ee498463ddd3701 (diff) | |
download | freebsd-ports-graphics-7d25631fb79fa139ede7fbf83788c83fc7f51122.tar.gz freebsd-ports-graphics-7d25631fb79fa139ede7fbf83788c83fc7f51122.tar.zst freebsd-ports-graphics-7d25631fb79fa139ede7fbf83788c83fc7f51122.zip |
Fix compile error of sapi/cgi/fastcgi.c on 4.x.
PR: ports/97065
Submitted by: KIMURA Yasuhiro <yasu@utahime.org>
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php5/files/patch-sapi_cgi_fastcgi.c | 22 | ||||
-rw-r--r-- | lang/php53/files/patch-sapi_cgi_fastcgi.c | 22 |
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 00000000000..f8195b2a86f --- /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 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); |