You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
578 B

  1. --- a/auto/types/sizeof
  2. +++ b/auto/types/sizeof
  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