little bugfix for 64bit apache2

This commit is contained in:
roberto@sirius
2010-01-21 14:04:56 +01:00
parent b2ffd406e3
commit 816998155e
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -10,8 +10,10 @@
- new functions for embedded module
- reliable harakiri
- better Makefiles
- proper timeotu handling in apache2 module
- proper timeout handling in apache2 module
- endianess fixes all over the place
- paste support
- Django app for managing and monitoring the uWSGI server
- lot of bugfixes and optimizations
*** 20091129 Version 0.9.3 ***
+4 -4
View File
@@ -96,9 +96,9 @@ static int uwsgi_add_var(struct iovec *vec, int i, char *key, char *value, uint1
#if APR_IS_BIGENDIAN
ptr = (char *) &vec[i+2].iov_len;
vec[i].iov_base = ptr+3 ;
vec[i].iov_base = ptr+sizeof(long)-1 ;
vec[i].iov_len = 1 ;
vec[i+1].iov_base = ptr+2 ;
vec[i+1].iov_base = ptr+sizeof(long)-2 ;
vec[i+1].iov_len = 1 ;
#else
vec[i].iov_base = &vec[i+1].iov_len ;
@@ -116,9 +116,9 @@ static int uwsgi_add_var(struct iovec *vec, int i, char *key, char *value, uint1
#if APR_IS_BIGENDIAN
ptr = (char *) &vec[i+5].iov_len;
vec[i+3].iov_base = ptr+3 ;
vec[i+3].iov_base = ptr+sizeof(long)-1 ;
vec[i+3].iov_len = 1 ;
vec[i+4].iov_base = ptr+2 ;
vec[i+4].iov_base = ptr+sizeof(long)-2 ;
vec[i+4].iov_len = 1 ;
#else
vec[i+2].iov_base = &vec[i+3].iov_len ;