changeset 4544:3a99980ac221

Some older OSes (notably FreeBSD 4.x) did not have %zu format specifier, so revert to using %d.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 16 Mar 2012 07:33:55 +0000
parents 51744fa997c7
children ba39af7274ed
files auto/types/sizeof
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/auto/types/sizeof
+++ b/auto/types/sizeof
@@ -26,7 +26,7 @@ cat << END > $NGX_AUTOTEST.c
 $NGX_INCLUDE_AUTO_CONFIG_H
 
 int main() {
-    printf("%zu", sizeof($ngx_type));
+    printf("%d", (int) sizeof($ngx_type));
     return 0;
 }