diff --git a/phymem_netbsd.go b/phymem_netbsd.go index cd71c7a..6328a17 100644 --- a/phymem_netbsd.go +++ b/phymem_netbsd.go @@ -4,9 +4,10 @@ package phymem #include #include #include +#include #include -static int +static int64_t getRSS(void) { int ret; @@ -23,7 +24,7 @@ getRSS(void) long pagesize = sysconf(_SC_PAGESIZE); - return kp.p_vm_rssize * pagesize; + return (int64_t)(kp.p_vm_rssize * pagesize); } */ import "C"