summaryrefslogtreecommitdiff
path: root/auto/types
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2012-03-16 07:33:55 +0000
committerRuslan Ermilov <ru@nginx.com>2012-03-16 07:33:55 +0000
commitc2afb66e8885d9740ae5b7ade421d1522219551b (patch)
tree3bc4e5d2b157b3eb8d01fc02e40e126065e8d912 /auto/types
parent4489fa8893518cc63ddcff221d12572f05ed7b1c (diff)
downloadnginx-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/sizeof2
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;
}