blob: 89a8aa8e1ab8fb9f000e87a78891ac3a7b51ea22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-dc,v 1.2 2012/01/19 19:43:57 drochner Exp $
--- sysdeps/freebsd/cpu.c.orig 2011-07-24 19:13:56.000000000 +0000
+++ sysdeps/freebsd/cpu.c
@@ -53,6 +53,7 @@ _glibtop_init_cpu_s (glibtop *server)
void
glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
{
+#ifndef __DragonFly__
long cpts [CPUSTATES];
long *cp_times = NULL;
struct clockinfo ci;
@@ -132,4 +133,5 @@ glibtop_get_cpu_s (glibtop *server, glib
if (ncpu > 1) {
buf->flags |= _glibtop_sysdeps_cpu_smp;
}
+#endif
}
|