From: Ruslan Ermilov Date: Fri, 16 Mar 2012 07:33:55 +0000 (+0000) Subject: Some older OSes (notably FreeBSD 4.x) did not have %zu X-Git-Tag: release-1.1.18~21 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=c2afb66e8885d9740ae5b7ade421d1522219551b;p=nginx.git 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 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; }