summaryrefslogtreecommitdiff
path: root/sysutils/xosview/patches/patch-ae
blob: 52452c83142f952bd0a4ac0cd92ce1565d446af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ae,v 1.9 2003/10/01 00:33:54 christos Exp $

--- bsd/cpumeter.cc.orig	1999-02-16 09:09:22.000000000 -0500
+++ bsd/cpumeter.cc	2003-09-30 20:27:45.000000000 -0400
@@ -17,2 +17,5 @@
 #include <sys/dkstat.h>         //  For CPUSTATES #define.  BCG
+#if defined(XOSVIEW_NETBSD) && !defined(CPUSTATES)
+#include <sys/sched.h>
+#endif
 #include <stdlib.h>		//  For use of atoi  BCG
@@ -111,9 +114,9 @@
       fprintf(stderr,
-"  Warning:  the CPU tick counters are not changing.  This could
-be due to running a kernel besides /netbsd (or the equivalent for FreeBSD).
-  If this is the case, re-run xosview with the -N kernel-name option.
-  If not, then this is a bug.  Please send a message to
-bgrayson@ece.utexas.edu, in addition to any send-pr bug reports
-(or in lieu of -- it ought to get fixed faster if you contact me
-directly).  Thanks!\n");
+" Warning: The CPU tick counters are not changing.  This could"
+" be due to running a kernel besides /netbsd (or the equivalent for FreeBSD)."
+" If this is the case, re-run xosview with the -N kernel-name option."
+" If not, then this is a bug.  Please send a message to"
+" bgrayson@ece.utexas.edu, in addition to any send-pr bug reports"
+" (or in lieu of -- it ought to get fixed faster if you contact me"
+" directly).  Thanks!\n");
       firstTime = 0;