diff options
author | Ruslan Ermilov <ru@nginx.com> | 2012-03-16 07:33:55 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2012-03-16 07:33:55 +0000 |
commit | c2afb66e8885d9740ae5b7ade421d1522219551b (patch) | |
tree | 3bc4e5d2b157b3eb8d01fc02e40e126065e8d912 /auto/types | |
parent | 4489fa8893518cc63ddcff221d12572f05ed7b1c (diff) | |
download | nginx-c2afb66e8885d9740ae5b7ade421d1522219551b.tar.gz |
Some older OSes (notably FreeBSD 4.x) did not have %zu
format specifier, so revert to using %d.
Diffstat (limited to 'auto/types')
-rw-r--r-- | auto/types/sizeof | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auto/types/sizeof b/auto/types/sizeof index 31411dde3..e1d405c65 100644 --- a/auto/types/sizeof +++ b/auto/types/sizeof @@ -26,7 +26,7 @@ $NGX_INCLUDE_INTTYPES_H $NGX_INCLUDE_AUTO_CONFIG_H int main() { - printf("%zu", sizeof($ngx_type)); + printf("%d", (int) sizeof($ngx_type)); return 0; } |