diff --git a/core/src/lib/htable.cc b/core/src/lib/htable.cc index 1f76acc59ce..7cff8978619 100644 --- a/core/src/lib/htable.cc +++ b/core/src/lib/htable.cc @@ -40,6 +40,7 @@ * Kern Sibbald, July MMIII */ +#include #include "include/hostconfig.h" #ifdef HAVE_HPUX_OS @@ -256,7 +257,7 @@ void htable::stats() printf("buckets=%d num_items=%d max_items=%d\n", buckets, num_items, max_items); printf("max hits in a bucket = %d\n", max); - printf("total bytes malloced = %lu\n", total_size); + printf("total bytes malloced = %" PRIu64 "\n", total_size); printf("total blocks malloced = %d\n", blocks); }