diff options
Diffstat (limited to 'package/nginx/patches/patch-auto_types_sizeof')
-rw-r--r-- | package/nginx/patches/patch-auto_types_sizeof | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/nginx/patches/patch-auto_types_sizeof b/package/nginx/patches/patch-auto_types_sizeof new file mode 100644 index 000000000..219385d00 --- /dev/null +++ b/package/nginx/patches/patch-auto_types_sizeof @@ -0,0 +1,26 @@ +--- nginx-1.2.2.orig/auto/types/sizeof 2012-03-16 08:33:55.000000000 +0100 ++++ nginx-1.2.2/auto/types/sizeof 2012-07-16 09:28:44.000000000 +0200 +@@ -25,8 +25,13 @@ $NGX_INCLUDE_UNISTD_H + $NGX_INCLUDE_INTTYPES_H + $NGX_INCLUDE_AUTO_CONFIG_H + ++char object_code_block[] = { ++ '\n', 'e', '4', 'V', 'A', ++ '0', 'x', ('0' + sizeof($ngx_type)), ++ 'Y', '3', 'p', 'M', '\n' ++}; ++ + int main() { +- printf("%d", (int) sizeof($ngx_type)); + return 0; + } + +@@ -40,7 +45,7 @@ eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>& + + + if [ -x $NGX_AUTOTEST ]; then +- ngx_size=`$NGX_AUTOTEST` ++ ngx_size=`sed -ne 's/^e4VA0x\(.\)Y3pM$/\1/p' < $NGX_AUTOTEST` + echo " $ngx_size bytes" + fi + |