Merging bzr://gaz.tangent.org/libmemcached/build/ to Build branch
[m6w6/libmemcached] / clients / ms_stats.c
index 960467fd46c3515704be8eecb39290237d74d73f..49a5ab6e85e1782d10f5dde2e2ea15a6c418a857 100644 (file)
@@ -8,6 +8,10 @@
  * http://www.schoonerinfotech.com/
  *
  */
+
+#include "config.h"
+
+#include <inttypes.h>
 #include "ms_stats.h"
 
 #define array_size(x)    (sizeof(x) / sizeof((x)[0]))
@@ -188,7 +192,7 @@ void ms_dump_stats(ms_stat_t *stat)
     {
       printf("\n      %2d:", (int)i);
     }
-    printf("   %6ld", stat->dist[i]);
+    printf("   %6" PRIu64 , stat->dist[i]);
   }
 
   printf("\n\n");