stas Wed Jun 7 14:28:26 2006 UTC Modified files: (Branch: PHP_5_1) /php-src/sapi/cgi fastcgi.c Log: fix compiling with "more strict" compilers http://cvs.php.net/viewcvs.cgi/php-src/sapi/cgi/fastcgi.c?r1=1.4.2.16&r2=1.4.2.17&diff_format=u Index: php-src/sapi/cgi/fastcgi.c diff -u php-src/sapi/cgi/fastcgi.c:1.4.2.16 php-src/sapi/cgi/fastcgi.c:1.4.2.17 --- php-src/sapi/cgi/fastcgi.c:1.4.2.16 Thu May 25 07:06:04 2006 +++ php-src/sapi/cgi/fastcgi.c Wed Jun 7 14:28:26 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fastcgi.c,v 1.4.2.16 2006/05/25 07:06:04 dmitry Exp $ */ +/* $Id: fastcgi.c,v 1.4.2.17 2006/06/07 14:28:26 stas Exp $ */ #include "fastcgi.h" #include "php.h" @@ -665,12 +665,14 @@ } 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); + } #endif if (req->fd < 0 && (in_shutdown || errno != EINTR)) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php