1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Fix Build on CURRENT.

Submitted by:	Andy Fawcett <tap@hex.athame.co.uk>
Reported by:	many
Tested by:	Jiawei Ye <leafy@leafy.idv.tw> (CURRENT),  Andy Fawcett <tap@hex.athame.co.uk> (4.7, 5.0R)
This commit is contained in:
Tilman Keskinoz 2003-03-03 10:32:19 +00:00
parent 3612ccbc88
commit 4998cd646e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76787
7 changed files with 168 additions and 0 deletions

View File

@ -0,0 +1,24 @@
Index: ksysguard/ksysguardd/FreeBSD/CPU.c
===================================================================
RCS file: /home/kde/kdebase/ksysguard/ksysguardd/FreeBSD/CPU.c,v
retrieving revision 1.9
diff -u -5 -p -d -r1.9 CPU.c
--- ksysguard/ksysguardd/FreeBSD/CPU.c 17 Oct 2002 10:04:02 -0000 1.9
+++ ksysguard/ksysguardd/FreeBSD/CPU.c 3 Mar 2003 07:11:28 -0000
@@ -19,11 +19,16 @@
$Id: CPU.c,v 1.9 2002/10/17 10:04:02 garbanzo Exp $
*/
#include <sys/types.h>
+#include <sys/param.h>
+#if __FreeBSD_version < 500101
#include <sys/dkstat.h>
+#else
+#include <sys/resource.h>
+#endif
#include <sys/sysctl.h>
#include <devstat.h>
#include <fcntl.h>
#include <nlist.h>

View File

@ -0,0 +1,24 @@
Index: ksysguard/ksysguardd/FreeBSD/CPU.c
===================================================================
RCS file: /home/kde/kdebase/ksysguard/ksysguardd/FreeBSD/CPU.c,v
retrieving revision 1.9
diff -u -5 -p -d -r1.9 CPU.c
--- ksysguard/ksysguardd/FreeBSD/CPU.c 17 Oct 2002 10:04:02 -0000 1.9
+++ ksysguard/ksysguardd/FreeBSD/CPU.c 3 Mar 2003 07:11:28 -0000
@@ -19,11 +19,16 @@
$Id: CPU.c,v 1.9 2002/10/17 10:04:02 garbanzo Exp $
*/
#include <sys/types.h>
+#include <sys/param.h>
+#if __FreeBSD_version < 500101
#include <sys/dkstat.h>
+#else
+#include <sys/resource.h>
+#endif
#include <sys/sysctl.h>
#include <devstat.h>
#include <fcntl.h>
#include <nlist.h>

View File

@ -0,0 +1,24 @@
Index: ksysguard/ksysguardd/FreeBSD/CPU.c
===================================================================
RCS file: /home/kde/kdebase/ksysguard/ksysguardd/FreeBSD/CPU.c,v
retrieving revision 1.9
diff -u -5 -p -d -r1.9 CPU.c
--- ksysguard/ksysguardd/FreeBSD/CPU.c 17 Oct 2002 10:04:02 -0000 1.9
+++ ksysguard/ksysguardd/FreeBSD/CPU.c 3 Mar 2003 07:11:28 -0000
@@ -19,11 +19,16 @@
$Id: CPU.c,v 1.9 2002/10/17 10:04:02 garbanzo Exp $
*/
#include <sys/types.h>
+#include <sys/param.h>
+#if __FreeBSD_version < 500101
#include <sys/dkstat.h>
+#else
+#include <sys/resource.h>
+#endif
#include <sys/sysctl.h>
#include <devstat.h>
#include <fcntl.h>
#include <nlist.h>

View File

@ -0,0 +1,24 @@
Index: ksysguard/ksysguardd/FreeBSD/CPU.c
===================================================================
RCS file: /home/kde/kdebase/ksysguard/ksysguardd/FreeBSD/CPU.c,v
retrieving revision 1.9
diff -u -5 -p -d -r1.9 CPU.c
--- ksysguard/ksysguardd/FreeBSD/CPU.c 17 Oct 2002 10:04:02 -0000 1.9
+++ ksysguard/ksysguardd/FreeBSD/CPU.c 3 Mar 2003 07:11:28 -0000
@@ -19,11 +19,16 @@
$Id: CPU.c,v 1.9 2002/10/17 10:04:02 garbanzo Exp $
*/
#include <sys/types.h>
+#include <sys/param.h>
+#if __FreeBSD_version < 500101
#include <sys/dkstat.h>
+#else
+#include <sys/resource.h>
+#endif
#include <sys/sysctl.h>
#include <devstat.h>
#include <fcntl.h>
#include <nlist.h>

View File

@ -0,0 +1,24 @@
Index: ksysguard/ksysguardd/FreeBSD/CPU.c
===================================================================
RCS file: /home/kde/kdebase/ksysguard/ksysguardd/FreeBSD/CPU.c,v
retrieving revision 1.9
diff -u -5 -p -d -r1.9 CPU.c
--- ksysguard/ksysguardd/FreeBSD/CPU.c 17 Oct 2002 10:04:02 -0000 1.9
+++ ksysguard/ksysguardd/FreeBSD/CPU.c 3 Mar 2003 07:11:28 -0000
@@ -19,11 +19,16 @@
$Id: CPU.c,v 1.9 2002/10/17 10:04:02 garbanzo Exp $
*/
#include <sys/types.h>
+#include <sys/param.h>
+#if __FreeBSD_version < 500101
#include <sys/dkstat.h>
+#else
+#include <sys/resource.h>
+#endif
#include <sys/sysctl.h>
#include <devstat.h>
#include <fcntl.h>
#include <nlist.h>

View File

@ -0,0 +1,24 @@
Index: ksysguard/ksysguardd/FreeBSD/CPU.c
===================================================================
RCS file: /home/kde/kdebase/ksysguard/ksysguardd/FreeBSD/CPU.c,v
retrieving revision 1.9
diff -u -5 -p -d -r1.9 CPU.c
--- ksysguard/ksysguardd/FreeBSD/CPU.c 17 Oct 2002 10:04:02 -0000 1.9
+++ ksysguard/ksysguardd/FreeBSD/CPU.c 3 Mar 2003 07:11:28 -0000
@@ -19,11 +19,16 @@
$Id: CPU.c,v 1.9 2002/10/17 10:04:02 garbanzo Exp $
*/
#include <sys/types.h>
+#include <sys/param.h>
+#if __FreeBSD_version < 500101
#include <sys/dkstat.h>
+#else
+#include <sys/resource.h>
+#endif
#include <sys/sysctl.h>
#include <devstat.h>
#include <fcntl.h>
#include <nlist.h>

View File

@ -0,0 +1,24 @@
Index: ksysguard/ksysguardd/FreeBSD/CPU.c
===================================================================
RCS file: /home/kde/kdebase/ksysguard/ksysguardd/FreeBSD/CPU.c,v
retrieving revision 1.9
diff -u -5 -p -d -r1.9 CPU.c
--- ksysguard/ksysguardd/FreeBSD/CPU.c 17 Oct 2002 10:04:02 -0000 1.9
+++ ksysguard/ksysguardd/FreeBSD/CPU.c 3 Mar 2003 07:11:28 -0000
@@ -19,11 +19,16 @@
$Id: CPU.c,v 1.9 2002/10/17 10:04:02 garbanzo Exp $
*/
#include <sys/types.h>
+#include <sys/param.h>
+#if __FreeBSD_version < 500101
#include <sys/dkstat.h>
+#else
+#include <sys/resource.h>
+#endif
#include <sys/sysctl.h>
#include <devstat.h>
#include <fcntl.h>
#include <nlist.h>