Some older OSes (notably FreeBSD 4.x) did not have %zu

format specifier, so revert to using %d.
This commit is contained in:
Ruslan Ermilov 2012-03-16 07:33:55 +00:00
parent 4489fa8893
commit c2afb66e88

View File

@ -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;
}