# HG changeset patch # User Ruslan Ermilov # Date 1331883235 0 # Node ID 3a99980ac2218c92607d8a08287ef059892900d9 # Parent 51744fa997c7d77fd3e30e1c289ed53783ed820c Some older OSes (notably FreeBSD 4.x) did not have %zu format specifier, so revert to using %d. diff --git a/auto/types/sizeof b/auto/types/sizeof --- a/auto/types/sizeof +++ b/auto/types/sizeof @@ -26,7 +26,7 @@ cat << END > $NGX_AUTOTEST.c $NGX_INCLUDE_AUTO_CONFIG_H int main() { - printf("%zu", sizeof($ngx_type)); + printf("%d", (int) sizeof($ngx_type)); return 0; }