Fixed build on OpenBSD. Patch by Jasper Lievisse Adriaanse
2007-05-08 Benoît Dejean <benoit@placenet.org> * fsusage.c: (_glibtop_bsd_get_fsusage_read_write): * netload.c: (glibtop_get_netload_p): Fixed build on OpenBSD. Patch by Jasper Lievisse Adriaanse <jasper@nedbsd.nl>. svn path=/branches/gnome-2-14/; revision=2575
This commit is contained in:
committed by
Benoît Dejean
parent
3bf5087ae8
commit
8308952bdf
@@ -1,3 +1,11 @@
|
||||
2007-05-08 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* fsusage.c: (_glibtop_bsd_get_fsusage_read_write):
|
||||
* netload.c: (glibtop_get_netload_p):
|
||||
|
||||
Fixed build on OpenBSD.
|
||||
Patch by Jasper Lievisse Adriaanse <jasper@nedbsd.nl>.
|
||||
|
||||
2007-02-18 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* AUTHORS:
|
||||
|
@@ -54,7 +54,9 @@ _glibtop_bsd_get_fsusage_read_write(glibtop *server,
|
||||
return;
|
||||
}
|
||||
|
||||
#if !defined(__OpenBSD__)
|
||||
buf->read = sfs.f_syncreads + sfs.f_asyncreads;
|
||||
#endif
|
||||
buf->write = sfs.f_syncwrites + sfs.f_asyncwrites;
|
||||
buf->flags |= (1 << GLIBTOP_FSUSAGE_READ) | (1 << GLIBTOP_FSUSAGE_WRITE);
|
||||
}
|
||||
|
@@ -233,7 +233,11 @@ glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
|
||||
buf->flags |= GLIBTOP_NETLOAD_ADDRESS6;
|
||||
}
|
||||
/* FIXME prefix6, scope6 */
|
||||
#if defined (__OpenBSD__)
|
||||
ifaddraddr = (u_long) ifaddr.ifa.ifa_list.tqe_next;
|
||||
#else
|
||||
ifaddraddr = (u_long) ifaddr.ifa.ifa_link.tqe_next;
|
||||
#endif
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user