[nginx] svn commit: r4545 - trunk/auto/types

ru at nginx.com ru at nginx.com
Fri Mar 16 07:33:56 UTC 2012


Author: ru
Date: 2012-03-16 07:33:55 +0000 (Fri, 16 Mar 2012)
New Revision: 4545

Log:
Some older OSes (notably FreeBSD 4.x) did not have %zu
format specifier, so revert to using %d.


Modified:
   trunk/auto/types/sizeof

Modified: trunk/auto/types/sizeof
===================================================================
--- trunk/auto/types/sizeof	2012-03-15 20:39:38 UTC (rev 4544)
+++ trunk/auto/types/sizeof	2012-03-16 07:33:55 UTC (rev 4545)
@@ -26,7 +26,7 @@
 $NGX_INCLUDE_AUTO_CONFIG_H
 
 int main() {
-    printf("%zu", sizeof($ngx_type));
+    printf("%d", (int) sizeof($ngx_type));
     return 0;
 }
 



More information about the nginx-devel mailing list