summaryrefslogtreecommitdiff
path: root/x11/xmeter
diff options
context:
space:
mode:
authorlukem <lukem@pkgsrc.org>2001-05-09 01:24:33 +0000
committerlukem <lukem@pkgsrc.org>2001-05-09 01:24:33 +0000
commitbaf9d29c80068ad392cb8a907e3318ee37e471c5 (patch)
treec5626509ac2082ac3691d7e88188087682b238e1 /x11/xmeter
parentfba2acda3352129daac7f3a3b300822237ab2ac2 (diff)
downloadpkgsrc-baf9d29c80068ad392cb8a907e3318ee37e471c5.tar.gz
#undef FSHIFT and FSCALE before including <rpcsvc/rstat.h>, so that the
rstat protocol's FSCALE of 1<<8 gets used instead of <sys/param.h>'s 1<<11. Without this fix (which rup also has), load averages are 8 times too low.
Diffstat (limited to 'x11/xmeter')
-rw-r--r--x11/xmeter/patches/patch-aa11
1 files changed, 10 insertions, 1 deletions
diff --git a/x11/xmeter/patches/patch-aa b/x11/xmeter/patches/patch-aa
index 58b0832f037..67dff2d84a9 100644
--- a/x11/xmeter/patches/patch-aa
+++ b/x11/xmeter/patches/patch-aa
@@ -1,9 +1,18 @@
-$NetBSD: patch-aa,v 1.1.1.1 1998/10/30 10:53:41 agc Exp $
+$NetBSD: patch-aa,v 1.2 2001/05/09 01:24:33 lukem Exp $
Use the right signal handler type.
--- xmeter.c 1998/10/30 10:41:09 1.1
+++ xmeter.c 1998/10/30 10:41:51
+@@ -135,6 +135,8 @@
+ #define PORTMAP /* Get right function declarations on Solaris 2 */
+ #include <rpc/rpc.h>
+ #include <rpc/pmap_prot.h>
++#undef FSHIFT /* Use protocol's shift and scale values */
++#undef FSCALE
+ #include <rpcsvc/rstat.h>
+ /*
+ * We need the definitions of CP_USER, CP_NICE and CP_SYS. Some systems
@@ -231,7 +228,7 @@
char *name; /* Name of stat for menu widget */
} STATDATA;