aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-07-31 19:38:02 +0800
committersem <sem@FreeBSD.org>2005-07-31 19:38:02 +0800
commit721623d00fddc3b4ad68af05830117321a124157 (patch)
tree8d6ff7b6382f4b1da5adfdd37cf055fa6ffc5624 /sysutils
parent7403dc25cb8e72fe82e0828077b2597e4a4fe85f (diff)
downloadfreebsd-ports-gnome-721623d00fddc3b4ad68af05830117321a124157.tar.gz
freebsd-ports-gnome-721623d00fddc3b4ad68af05830117321a124157.tar.zst
freebsd-ports-gnome-721623d00fddc3b4ad68af05830117321a124157.zip
- Unbreak on CURRENT
PR: ports/84228 Submitted by: maintainer
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/symon/files/patch-sm_io.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/symon/files/patch-sm_io.c b/sysutils/symon/files/patch-sm_io.c
new file mode 100644
index 000000000000..f1d898f2736c
--- /dev/null
+++ b/sysutils/symon/files/patch-sm_io.c
@@ -0,0 +1,29 @@
+--- platform/FreeBSD/sm_io.c.orig Mon Jul 25 12:08:47 2005
++++ platform/FreeBSD/sm_io.c Mon Jul 25 12:12:27 2005
+@@ -81,7 +81,7 @@
+ void
+ gets_io()
+ {
+-#if DEVSTAT_USER_API_VER == 5
++#if DEVSTAT_USER_API_VER == 5 || DEVSTAT_USER_API_VER == 6
+ io_numdevs = devstat_getnumdevs(NULL);
+ #else
+ io_numdevs = getnumdevs();
+@@ -98,7 +98,7 @@
+ /* clear the devinfo struct, as getdevs expects it to be all zeroes */
+ bzero(io_stats.dinfo, sizeof(struct devinfo));
+
+-#if DEVSTAT_USER_API_VER == 5
++#if DEVSTAT_USER_API_VER == 5 || DEVSTAT_USER_API_VER == 6
+ devstat_getdevs(NULL, &io_stats);
+ #else
+ getdevs(&io_stats);
+@@ -118,7 +118,7 @@
+ strlen(ds->device_name) < strlen(dev) &&
+ isdigit(dev[strlen(ds->device_name)]) &&
+ atoi(&dev[strlen(ds->device_name)]) == ds->unit_number) {
+-#if DEVSTAT_USER_API_VER == 5
++#if DEVSTAT_USER_API_VER == 5 || DEVSTAT_USER_API_VER == 6
+ return snpack(symon_buf, maxlen, dev, MT_IO2,
+ ds->operations[DEVSTAT_READ],
+ ds->operations[DEVSTAT_WRITE],