commit | c2afb66e8885d9740ae5b7ade421d1522219551b | [log] [tgz] |
---|---|---|
author | Ruslan Ermilov <ru@nginx.com> | Fri Mar 16 07:33:55 2012 +0000 |
committer | Ruslan Ermilov <ru@nginx.com> | Fri Mar 16 07:33:55 2012 +0000 |
tree | 3bc4e5d2b157b3eb8d01fc02e40e126065e8d912 | |
parent | 4489fa8893518cc63ddcff221d12572f05ed7b1c [diff] |
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 index 31411dd..e1d405c 100644 --- a/auto/types/sizeof +++ b/auto/types/sizeof
@@ -26,7 +26,7 @@ $NGX_INCLUDE_AUTO_CONFIG_H int main() { - printf("%zu", sizeof($ngx_type)); + printf("%d", (int) sizeof($ngx_type)); return 0; }