From 0c6f2b1256d6d877b5fedbd491649d4285f0d618 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Fri, 15 Feb 2002 01:09:56 +0000 Subject: 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. --- net-mgmt/net-snmp/files/patch-diskio.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 net-mgmt/net-snmp/files/patch-diskio.c (limited to 'net-mgmt/net-snmp/files/patch-diskio.c') diff --git a/net-mgmt/net-snmp/files/patch-diskio.c b/net-mgmt/net-snmp/files/patch-diskio.c new file mode 100644 index 000000000000..1c68911c67b7 --- /dev/null +++ b/net-mgmt/net-snmp/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 + #endif /* bsdi */ + +-#if defined (freebsd4) ++#if __FreeBSD__ >= 4 + #include + #include +-#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 */ + -- cgit v1.2.3