diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-03-23 05:26:37 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-03-23 05:26:37 +0000 |
commit | 92e5c09d577317e5c97e0e44ea9636c099b7c059 (patch) | |
tree | da742cdb8996e201330f57dce9d6eeb215885249 /sysutils/gkrellm | |
parent | 45994f3bcfe436a3446953301783ea8d1d3bdf95 (diff) | |
download | ports-92e5c09d577317e5c97e0e44ea9636c099b7c059.tar.gz ports-92e5c09d577317e5c97e0e44ea9636c099b7c059.zip |
Notes
Diffstat (limited to 'sysutils/gkrellm')
-rw-r--r-- | sysutils/gkrellm/files/patch-src::disk.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sysutils/gkrellm/files/patch-src::disk.c b/sysutils/gkrellm/files/patch-src::disk.c index f92b46847a6f..a46c83b631c5 100644 --- a/sysutils/gkrellm/files/patch-src::disk.c +++ b/sysutils/gkrellm/files/patch-src::disk.c @@ -1,7 +1,7 @@ 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 ++++ src/disk.c Sat Mar 22 20:03:22 2003 @@ -70,7 +70,11 @@ #if defined(__FreeBSD__) @@ -14,3 +14,18 @@ diff -u src/disk.c.orig src/disk.c #if __FreeBSD_version >= 300000 #include <devstat.h> static struct statinfo statinfo_cur; +@@ -161,6 +165,14 @@ + using_DiskN_names = TRUE; + } + #else ++#if __FreeBSD_version >= 500107 ++#define getdevs(stats) devstat_getdevs(NULL, stats) ++#define getnumdevs() devstat_getnumdevs(NULL) ++#define selectdevs devstat_selectdevs ++#define bytes_read bytes[DEVSTAT_READ] ++#define bytes_written bytes[DEVSTAT_WRITE] ++#endif ++ + static void + read_freebsd_disk() + { |