Unbreak after ia_subnet removal. ok jasper@

This commit is contained in:
sthen 2010-01-18 09:27:00 +00:00
parent f6f31eb29c
commit 242fff5eff
2 changed files with 14 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.35 2009/11/02 20:19:06 jasper Exp $
# $OpenBSD: Makefile,v 1.36 2010/01/18 09:27:00 sthen Exp $
COMMENT= portable library for obtaining system information
GNOME_VERSION= 2.28.0
GNOME_PROJECT= libgtop
PKGNAME= libgtop2-${VERSION}p0
PKGNAME= libgtop2-${VERSION}p1
SHARED_LIBS= gtop-2.0 9.0 # .9.0

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-sysdeps_bsd_netload_c,v 1.1 2010/01/18 09:27:00 sthen Exp $
--- sysdeps/bsd/netload.c.orig Mon Jan 18 08:24:30 2010
+++ sysdeps/bsd/netload.c Mon Jan 18 08:26:34 2010
@@ -220,7 +220,7 @@ glibtop_get_netload_p (glibtop *server, glibtop_netloa
sin = (struct sockaddr_in *)sa;
#if !defined(__bsdi__)
/* Commenting out to "fix" #13345. */
- buf->subnet = htonl (ifaddr.in.ia_subnet);
+ buf->subnet = htonl (ifaddr.in.ia_net);
#endif
buf->address = sin->sin_addr.s_addr;
buf->mtu = ifnet.if_mtu;