diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-02-15 01:09:56 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-02-15 01:09:56 +0000 |
commit | 0c6f2b1256d6d877b5fedbd491649d4285f0d618 (patch) | |
tree | e9dad95dfe07c3d4ccf721a12af103088eedc59e /net-mgmt/net-snmp-devel/files/patch-diskio.c | |
parent | Pass the maintainership wand to Jason Harris <jharris@widomaker.com> (diff) |
o Add WITH_SNMP_DISKIO knob to collect diskio statistics (will turn on by
default after some period).
o Support 4.x and 5.x for host/hr_disk.c.
o Add simple patch to wrap function decraration in HAVE_LPSTAT correctly.
Notes
Notes:
svn path=/head/; revision=54717
Diffstat (limited to 'net-mgmt/net-snmp-devel/files/patch-diskio.c')
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-diskio.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-diskio.c b/net-mgmt/net-snmp-devel/files/patch-diskio.c new file mode 100644 index 000000000000..1c68911c67b7 --- /dev/null +++ b/net-mgmt/net-snmp-devel/files/patch-diskio.c @@ -0,0 +1,31 @@ +--- agent/mibgroup/ucd-snmp/diskio.c.orig Mon Sep 17 06:49:41 2001 ++++ agent/mibgroup/ucd-snmp/diskio.c Wed Feb 13 22:22:45 2002 +@@ -46,10 +46,10 @@ + #include <sys/diskstats.h> + #endif /* bsdi */ + +-#if defined (freebsd4) ++#if __FreeBSD__ >= 4 + #include <sys/dkstat.h> + #include <devstat.h> +-#endif /* freebsd */ ++#endif /* __FreeBSD__ */ + + + /********************* +@@ -298,7 +298,7 @@ + } + #endif /* bsdi */ + +-#if defined(freebsd4) ++#if __FreeBSD__ >= 4 + static int ndisk; + static struct statinfo *stat; + +@@ -377,5 +377,5 @@ + } + return NULL; + } +-#endif /* freebsd4 */ ++#endif /* __FreeBSD__ >= 4 */ + |