Browse files

NetBSD/current needs sysctl/vmmeter.h explicitly included.

  • Loading branch information...
1 parent 659f54f commit 208d8b33cebc89ddd1952fcd3fdb471d1f291186 joerg committed Jan 11, 2013
Showing with 23 additions and 5 deletions.
  1. +2 −2 net/xymonclient/distinfo
  2. +21 −3 net/xymonclient/patches/patch-af
View
4 net/xymonclient/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2012/10/11 18:42:19 spz Exp $
+$NetBSD: distinfo,v 1.11 2013/01/11 00:05:05 joerg Exp $
SHA1 (xymon-4.3.10.tar.gz) = d37765da5741adc4282e081e3ad59862eb22353f
RMD160 (xymon-4.3.10.tar.gz) = df5e01ab4528bc1146cdf784bbf69616f743bfa1
@@ -8,7 +8,7 @@ SHA1 (patch-ab) = ec71a05ac528675dbd406be0ea43729b2df1e106
SHA1 (patch-ac) = da7489b57fdbfc0937bcddeabb7cc57ef91e8431
SHA1 (patch-ad) = 7519eaeecab9f5d4b6956e0fd426548ec7990a0b
SHA1 (patch-ae) = 218ef05eb3d51d779230c357d731b2f904d4559f
-SHA1 (patch-af) = d4929c2acc2136e281564b403e9f75cfcd4d87f3
+SHA1 (patch-af) = 5e71a56cf827f9b30147dd577c295f10c150cd27
SHA1 (patch-build_Makefile.FreeBSD) = e58b50f35068cba6fed89cc21bcc4eb7d30efd23
SHA1 (patch-client_xymonclient-netbsd.sh) = 10d77fd722ecaaed7170b2ae6d51e6429a96d686
SHA1 (patch-configure) = 7b71ed7a567124a2aa36d9bf9188209649e88a4d
View
24 net/xymonclient/patches/patch-af
@@ -1,10 +1,19 @@
-$NetBSD: patch-af,v 1.2 2012/10/11 18:42:20 spz Exp $
+$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 2009-02-12 13:09:34.000000000 +0000
+--- client/netbsd-meminfo.c.orig 2011-07-31 21:01:52.000000000 +0000
+++ client/netbsd-meminfo.c
-@@ -22,7 +22,7 @@ static char rcsid[] = "$Id: netbsd-memin
+@@ -15,14 +15,16 @@ static char rcsid[] = "$Id: netbsd-memin
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+ #include <sys/swap.h>
++#include <sys/vmmeter.h>
+ #include <unistd.h>
++#include <stdint.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+
int main(int argc, char *argv[])
{
int hw_physmem[] = { CTL_HW, HW_PHYSMEM64 };
@@ -13,3 +22,12 @@ use the correct type for 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);

0 comments on commit 208d8b3

Please sign in to comment.