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:
Benoît Dejean
2007-05-08 17:09:48 +00:00
committed by Benoît Dejean
parent 3bf5087ae8
commit 8308952bdf
3 changed files with 14 additions and 0 deletions

View File

@@ -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;
}