diff options
author | ume <ume@FreeBSD.org> | 2003-02-20 10:59:11 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-02-20 10:59:11 +0000 |
commit | 9dd18f860717dd2ab637922e324e430fcbc70ae3 (patch) | |
tree | 0cc16f30fb54c78f9938171ecc154d9ad70e339f /sysutils | |
parent | 5344fbcd26e8c76bf93a821492aab9c22d556d5f (diff) | |
download | FreeBSD-ports-9dd18f860717dd2ab637922e324e430fcbc70ae3.zip FreeBSD-ports-9dd18f860717dd2ab637922e324e430fcbc70ae3.tar.gz |
follow dkstat.h change.
Notified by: Hung Michael Nguyen <nguyenhm16@mac.com>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/gkrellm/files/patch-src::cpu.c | 26 | ||||
-rw-r--r-- | sysutils/gkrellm/files/patch-src::disk.c | 16 | ||||
-rw-r--r-- | sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c | 26 |
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 0000000..c5709ad --- /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 0000000..f92b468 --- /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 0000000..56dcfb0 --- /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; |