ports/97065: [PATCH] lang/php5: fix compile error on 4.x
KIMURA Yasuhiro
yasu at utahime.org
Tue May 9 23:40:19 UTC 2006
>Number: 97065
>Category: ports
>Synopsis: [PATCH] lang/php5: fix compile error on 4.x
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue May 09 23:40:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: KIMURA Yasuhiro
>Release: FreeBSD 4.11-RELEASE-p17 i386
>Organization:
>Environment:
System: FreeBSD xxxx 4.11-RELEASE-p17 FreeBSD 4.11-RELEASE-p17 #0: Fri Apr 21 08:04:54 JST 2006 xxxx i386
>Description:
Fix compile error of sapi/cgi/fastcgi.c on 4.x.
>How-To-Repeat:
>Fix:
--- patch-php5 begins here ---
Index: files/patch-sapi_cgi_fastcgi.c
===================================================================
RCS file: files/patch-sapi_cgi_fastcgi.c
diff -N files/patch-sapi_cgi_fastcgi.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-sapi_cgi_fastcgi.c 9 May 2006 23:22:03 -0000
@@ -0,0 +1,22 @@
+--- sapi/cgi/fastcgi.c.orig Thu May 4 00:39:16 2006
++++ sapi/cgi/fastcgi.c Tue May 9 13:06:53 2006
+@@ -633,6 +633,9 @@
+ #ifdef _WIN32
+ HANDLE pipe;
+ OVERLAPPED ov;
++#else
++ sa_t sa;
++ socklen_t len;
+ #endif
+ fcgi_finish_request(req);
+
+@@ -669,8 +672,7 @@
+ }
+ FCGI_UNLOCK(req->listen_socket);
+ #else
+- sa_t sa;
+- socklen_t len = sizeof(sa);
++ len = sizeof(sa);
+
+ FCGI_LOCK(req->listen_socket);
+ req->fd = accept(req->listen_socket, (struct sockaddr *)&sa, &len);
--- patch-php5 ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list