summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-10-26 15:47:22 +0000
committerSascha Schumann <sas@php.net>2002-10-26 15:47:22 +0000
commitb9135d74e95f80d25e685a73a8d356bab58eff46 (patch)
tree696447455ee888a90e3a6f72be32f82daaa2898d /sapi
parente13c936bd3e4aa0dcdb4fd340727c401b9c157e1 (diff)
downloadphp-git-b9135d74e95f80d25e685a73a8d356bab58eff46.tar.gz
some system headers (irix) define sa_len
prefix sa_len with x
Diffstat (limited to 'sapi')
-rw-r--r--sapi/thttpd/thttpd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c
index bb8b8c656d..db8a5543c4 100644
--- a/sapi/thttpd/thttpd.c
+++ b/sapi/thttpd/thttpd.c
@@ -282,7 +282,7 @@ static void sapi_thttpd_register_variables(zval *track_vars_array TSRMLS_DC)
{
char buf[BUF_SIZE + 1];
char *p;
- int sa_len;
+ int xsa_len;
php_register_variable("PHP_SELF", SG(request_info).request_uri, track_vars_array TSRMLS_CC);
php_register_variable("SERVER_SOFTWARE", SERVER_SOFTWARE, track_vars_array TSRMLS_CC);
@@ -299,12 +299,12 @@ static void sapi_thttpd_register_variables(zval *track_vars_array TSRMLS_DC)
#ifdef HAVE_GETNAMEINFO
switch (TG(hc)->client_addr.sa.sa_family) {
- case AF_INET: sa_len = sizeof(struct sockaddr_in); break;
- case AF_INET6: sa_len = sizeof(struct sockaddr_in6); break;
- default: sa_len = 0;
+ case AF_INET: xsa_len = sizeof(struct sockaddr_in); break;
+ case AF_INET6: xsa_len = sizeof(struct sockaddr_in6); break;
+ default: xsa_len = 0;
}
- if (getnameinfo(&TG(hc)->client_addr.sa, sa_len, buf, sizeof(buf), 0, 0, NI_NUMERICHOST) == 0) {
+ if (getnameinfo(&TG(hc)->client_addr.sa, xsa_len, buf, sizeof(buf), 0, 0, NI_NUMERICHOST) == 0) {
#else
p = inet_ntoa(TG(hc)->client_addr.sa_in.sin_addr);