mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
follow dkstat.h change.
Notified by: Hung Michael Nguyen <nguyenhm16@mac.com>
This commit is contained in:
parent
0ed1ecd4dc
commit
e61857969c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75936
26
sysutils/gkrellm/files/patch-src::cpu.c
Normal file
26
sysutils/gkrellm/files/patch-src::cpu.c
Normal file
@ -0,0 +1,26 @@
|
||||
Index: src/cpu.c
|
||||
diff -u src/cpu.c.orig src/cpu.c
|
||||
--- src/cpu.c.orig Mon Jul 1 11:19:18 2002
|
||||
+++ src/cpu.c Thu Feb 20 19:46:29 2003
|
||||
@@ -141,8 +141,20 @@
|
||||
|
||||
/* ----- FreeBSD ---------------------------------------------------- */
|
||||
|
||||
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
+#if defined(__FreeBSD__)
|
||||
+#include <osreldate.h>
|
||||
+#if __FreeBSD_version >= 500101
|
||||
+#include <sys/resource.h>
|
||||
+#else
|
||||
+#include <sys/dkstat.h>
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+#if defined(__OpenBSD__)
|
||||
#include <sys/dkstat.h>
|
||||
+#endif
|
||||
+
|
||||
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
#include <kvm.h>
|
||||
|
||||
static struct nlist nl[] = {
|
16
sysutils/gkrellm/files/patch-src::disk.c
Normal file
16
sysutils/gkrellm/files/patch-src::disk.c
Normal file
@ -0,0 +1,16 @@
|
||||
Index: src/disk.c
|
||||
diff -u src/disk.c.orig src/disk.c
|
||||
--- src/disk.c.orig Mon Jul 1 11:19:47 2002
|
||||
+++ src/disk.c Thu Feb 20 19:42:04 2003
|
||||
@@ -70,7 +70,11 @@
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#include <osreldate.h>
|
||||
+#if __FreeBSD_version >= 500101
|
||||
+#include <sys/resource.h>
|
||||
+#else
|
||||
#include <sys/dkstat.h>
|
||||
+#endif
|
||||
#if __FreeBSD_version >= 300000
|
||||
#include <devstat.h>
|
||||
static struct statinfo statinfo_cur;
|
26
sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c
Normal file
26
sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c
Normal file
@ -0,0 +1,26 @@
|
||||
Index: src/sysdeps/freebsd.c
|
||||
diff -u src/sysdeps/freebsd.c.orig src/sysdeps/freebsd.c
|
||||
--- src/sysdeps/freebsd.c.orig Wed Jan 22 00:17:21 2003
|
||||
+++ src/sysdeps/freebsd.c Thu Feb 20 19:29:34 2003
|
||||
@@ -81,7 +81,12 @@
|
||||
/* ===================================================================== */
|
||||
/* CPU monitor interface */
|
||||
|
||||
+#include <osreldate.h>
|
||||
+#if __FreeBSD_version >= 500101
|
||||
+#include <sys/resource.h>
|
||||
+#else
|
||||
#include <sys/dkstat.h>
|
||||
+#endif
|
||||
#include <kvm.h>
|
||||
|
||||
|
||||
@@ -301,8 +306,6 @@
|
||||
/* ===================================================================== */
|
||||
/* Disk monitor interface */
|
||||
|
||||
-#include <osreldate.h>
|
||||
-#include <sys/dkstat.h>
|
||||
#if __FreeBSD_version >= 300000
|
||||
#include <devstat.h>
|
||||
static struct statinfo statinfo_cur;
|
Loading…
Reference in New Issue
Block a user