- Unbreak on CURRENT

PR:		ports/84228
Submitted by:	maintainer
This commit is contained in:
Sergey Matveychuk 2005-07-31 11:38:02 +00:00
parent 1053ed30f3
commit fb38687a9e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140547

View File

@ -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],