diff options
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} }; |