[packages] nginx: update to version 1.2.1
[openwrt/svn-archive/archive.git] / net / nginx / patches / 102-sizeof_test_fix.patch
index bea1080c2af358c57b56d16d0428af896c285d0f..0cd93cc4eb71390419ccd3a7398e1576082d0587 100644 (file)
@@ -1,21 +1,21 @@
 --- a/auto/types/sizeof
 +++ b/auto/types/sizeof
-@@ -23,8 +23,13 @@ $NGX_INCLUDE_UNISTD_H
+@@ -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'
++      '\n', 'e', '4', 'V', 'A',
++      '0', 'x', ('0' + sizeof($ngx_type)),
++      'Y', '3', 'p', 'M', '\n'
 +};
 +
  int main() {
--    printf("%d", sizeof($ngx_type));
+-    printf("%d", (int) sizeof($ngx_type));
      return 0;
  }
  
-@@ -38,7 +43,7 @@ eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&
+@@ -40,7 +45,7 @@ eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&
  
  
  if [ -x $NGX_AUTOTEST ]; then