diff --git a/test/main-override.cc b/test/main-override.cc index 760fa860..ece254c5 100644 --- a/test/main-override.cc +++ b/test/main-override.cc @@ -13,6 +13,7 @@ #include #include #include +#include extern "C" void* RPMALLOC_CDECL pvalloc(size_t size); extern "C" void* RPMALLOC_CDECL valloc(size_t size); @@ -73,7 +74,7 @@ test_alloc(void) { return -1; } if (reinterpret_cast(p) < config->page_size) { - fprintf(stderr, "FAIL: pvalloc did not align size to page size (%lu)\n", static_cast(rpmalloc_usable_size(p))); + fprintf(stderr, "FAIL: pvalloc did not align size to page size (%" PRIu64 ")\n", static_cast(rpmalloc_usable_size(p))); return -1; } rpfree(p);