1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Fix build on -CURRENT

Submitted by:	maintainer
This commit is contained in:
Pav Lucistnik 2005-04-02 09:09:33 +00:00
parent c87a13d100
commit 968aed5206
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132165

View File

@ -5,9 +5,9 @@
if (kvm_read(proc_kd, (unsigned long)pp->ki_paddr, &pproc,
sizeof(pproc)) == sizeof(pproc)) {
+#ifdef HAS_RUSAGE_EXT
+ cpu_uticks += pproc.p_rux.p_uticks; /* user */
+ cpu_sticks += pproc.p_rux.p_sticks; /* sys */
+ cpu_iticks += pproc.p_rux.p_iticks; /* int */
+ cpu_uticks += pproc.p_rux.rux_uticks; /* user */
+ cpu_sticks += pproc.p_rux.rux_sticks; /* sys */
+ cpu_iticks += pproc.p_rux.rux_iticks; /* int */
+#else
cpu_uticks += pproc.p_uticks; /* user */
cpu_sticks += pproc.p_sticks; /* sys */