From c2afb66e8885d9740ae5b7ade421d1522219551b Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 16 Mar 2012 07:33:55 +0000 Subject: Some older OSes (notably FreeBSD 4.x) did not have %zu format specifier, so revert to using %d. --- auto/types/sizeof | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto') 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; } -- cgit