$NetBSD: patch-af,v 1.3 2013/01/11 00:05:05 joerg Exp $ use the correct type for physmem --- client/netbsd-meminfo.c.orig 2011-07-31 21:01:52.000000000 +0000 +++ client/netbsd-meminfo.c @@ -15,14 +15,16 @@ static char rcsid[] = "$Id: netbsd-memin #include #include #include +#include #include +#include #include #include int main(int argc, char *argv[]) { int hw_physmem[] = { CTL_HW, HW_PHYSMEM64 }; - int64 physmem; + int64_t physmem; int hw_pagesize[] = { CTL_HW, HW_PAGESIZE }; int pagesize; @@ -64,7 +66,7 @@ int main(int argc, char *argv[]) swapused /= (2*1024); // printf("Pagesize:%d\n", pagesize); - printf("Total:%d\n", (physmem / (1024 * 1024))); + printf("Total:%" PRId64"\n", (physmem / (1024 * 1024))); printf("Free:%d\n", (pagesize / 1024)*(vmdata.t_free / 1024)); printf("Swaptotal:%lu\n", swaptotal); printf("Swapused:%lu\n", swapused);