patch-auto_types_sizeof 675 B

1234567891011121314151617181920212223242526
  1. --- nginx-1.2.2.orig/auto/types/sizeof 2012-03-16 08:33:55.000000000 +0100
  2. +++ nginx-1.2.2/auto/types/sizeof 2012-07-16 09:28:44.000000000 +0200
  3. @@ -25,8 +25,13 @@ $NGX_INCLUDE_UNISTD_H
  4. $NGX_INCLUDE_INTTYPES_H
  5. $NGX_INCLUDE_AUTO_CONFIG_H
  6. +char object_code_block[] = {
  7. + '\n', 'e', '4', 'V', 'A',
  8. + '0', 'x', ('0' + sizeof($ngx_type)),
  9. + 'Y', '3', 'p', 'M', '\n'
  10. +};
  11. +
  12. int main() {
  13. - printf("%d", (int) sizeof($ngx_type));
  14. return 0;
  15. }
  16. @@ -40,7 +45,7 @@ eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&
  17. if [ -x $NGX_AUTOTEST ]; then
  18. - ngx_size=`$NGX_AUTOTEST`
  19. + ngx_size=`sed -ne 's/^e4VA0x\(.\)Y3pM$/\1/p' < $NGX_AUTOTEST`
  20. echo " $ngx_size bytes"
  21. fi