aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-02-20 10:59:11 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-02-20 10:59:11 +0000
commite61857969c3fb1623113784313845a1a55a850b6 (patch)
treea7a0e133b09af6a14603b5ed21871339001b0a06 /sysutils
parent0ed1ecd4dc851c9e5557cbfb38d4159653fbae40 (diff)
downloadports-e61857969c3fb1623113784313845a1a55a850b6.tar.gz
ports-e61857969c3fb1623113784313845a1a55a850b6.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/gkrellm/files/patch-src::cpu.c26
-rw-r--r--sysutils/gkrellm/files/patch-src::disk.c16
-rw-r--r--sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c26
3 files changed, 68 insertions, 0 deletions
diff --git a/sysutils/gkrellm/files/patch-src::cpu.c b/sysutils/gkrellm/files/patch-src::cpu.c
new file mode 100644
index 000000000000..c5709ad7e7e3
--- /dev/null
+++ b/sysutils/gkrellm/files/patch-src::cpu.c
@@ -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[] = {
diff --git a/sysutils/gkrellm/files/patch-src::disk.c b/sysutils/gkrellm/files/patch-src::disk.c
new file mode 100644
index 000000000000..f92b46847a6f
--- /dev/null
+++ b/sysutils/gkrellm/files/patch-src::disk.c
@@ -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;
diff --git a/sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c b/sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c
new file mode 100644
index 000000000000..56dcfb0715e7
--- /dev/null
+++ b/sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c
@@ -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;