DragonFly BSD
DragonFly bugs List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: newbe compiling kde-lite problem


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sat, 8 Jan 2005 19:50:01 +0100
Mail-followup-to: bugs@crater.dragonflybsd.org

On Fri, Jan 07, 2005 at 01:05:21PM +0100, Tomas wrote:
> CPU.c:47: `CPUSTATES' undeclared here (not in a function)
[snip]
> CPU.c:85: `CP_USER' undeclared (first use in this function)
> CPU.c: In function `printCPUNice':
> CPU.c:97: `CP_NICE' undeclared (first use in this function)
> CPU.c: In function `printCPUSys':
> CPU.c:109: `CP_SYS' undeclared (first use in this function)
> CPU.c: In function `printCPUIdle':
> CPU.c:121: `CP_IDLE' undeclared (first use in this function)

If you want to fix this, change the port to include kinfo.h instead
of sys/dkstat.h, link against libkinfo and get the data via
kinfo_get_sched_cputime. The structure kinfo_cputime has a field
for any of this stats, have a look at src/usr.bin/systat/iostat.c rev 1.4
for how to use this.

Of course, if you write patches, submit them back for the next KDE version
:)

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]