2013-09-26 17:14:40 +02:00

19 lines
506 B
Plaintext

$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
}