aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/wmbluecpu
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2003-04-10 17:46:22 +0800
committerfjoe <fjoe@FreeBSD.org>2003-04-10 17:46:22 +0800
commit1987e3c18e53669cf41bf2b1903c6aa4112a91ea (patch)
tree08668b4a6f62315d31be28edaaad7d960f67c060 /sysutils/wmbluecpu
parent99f00e4714ff3e13dcd921ed46c669025ade22ee (diff)
downloadfreebsd-ports-gnome-1987e3c18e53669cf41bf2b1903c6aa4112a91ea.tar.gz
freebsd-ports-gnome-1987e3c18e53669cf41bf2b1903c6aa4112a91ea.tar.zst
freebsd-ports-gnome-1987e3c18e53669cf41bf2b1903c6aa4112a91ea.zip
fix build on 5.x
Submitted by: MAINTAINER
Diffstat (limited to 'sysutils/wmbluecpu')
-rw-r--r--sysutils/wmbluecpu/files/cpu_freebsd.c16
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} };