diff options
author | Max Khon <fjoe@FreeBSD.org> | 2003-04-10 09:46:22 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2003-04-10 09:46:22 +0000 |
commit | 5cc4c102ee8454d657efb59e628ad52c05e15591 (patch) | |
tree | 75ec5f3516f4f00b340be8269311282314b4a728 /sysutils/wmbluecpu | |
parent | dbfd95a8ec3fa498a8d0e63e1b5e0ce50bf8cee6 (diff) | |
download | ports-5cc4c102ee8454d657efb59e628ad52c05e15591.tar.gz ports-5cc4c102ee8454d657efb59e628ad52c05e15591.zip |
Notes
Diffstat (limited to 'sysutils/wmbluecpu')
-rw-r--r-- | sysutils/wmbluecpu/files/cpu_freebsd.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sysutils/wmbluecpu/files/cpu_freebsd.c b/sysutils/wmbluecpu/files/cpu_freebsd.c index ae27a2185856..36440aea422a 100644 --- a/sysutils/wmbluecpu/files/cpu_freebsd.c +++ b/sysutils/wmbluecpu/files/cpu_freebsd.c @@ -18,15 +18,21 @@ * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. */ +#include <osreldate.h> +#if __FreeBSD_version > 500100 +#include <sys/time.h> +#include <sys/resource.h> +#else +#include <sys/dkstat.h> +#endif +#include <sys/types.h> +#include <fcntl.h> +#include <kvm.h> +#include <nlist.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <sys/types.h> -#include <kvm.h> -#include <nlist.h> -#include <fcntl.h> -#include <sys/dkstat.h> static kvm_t *kd; static struct nlist nlst[] = { {"_cp_time"}, {0} }; |