[packages] nginx: update to 0.7.65
[openwrt/svn-archive/archive.git] / net / nginx / patches / 002-sizeof_test_fix
1 --- a/auto/types/sizeof
2 +++ b/auto/types/sizeof
3 @@ -23,8 +23,13 @@ $NGX_INCLUDE_UNISTD_H
4 $NGX_INCLUDE_INTTYPES_H
5 $NGX_INCLUDE_AUTO_CONFIG_H
6
7 +char object_code_block[] = {
8 + '\n', 'e', '4', 'V', 'A',
9 + '0', 'x', ('0' + sizeof($ngx_type)),
10 + 'Y', '3', 'p', 'M', '\n'
11 +};
12 +
13 int main() {
14 - printf("%d", sizeof($ngx_type));
15 return 0;
16 }
17
18 @@ -38,7 +43,7 @@ eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&
19
20
21 if [ -x $NGX_AUTOTEST ]; then
22 - ngx_size=`$NGX_AUTOTEST`
23 + ngx_size=`sed -ne 's/^e4VA0x\(.\)Y3pM$/\1/p' < $NGX_AUTOTEST`
24 echo " $ngx_size bytes"
25 fi
26