Comment out the `subnet' field on BSDI; this should make it compile. Bug

2001-02-27  Martin Baulig  <baulig@suse.de>

	* netload.c: Comment out the `subnet' field on BSDI; this should
	make it compile. Bug #13345.
This commit is contained in:
Martin Baulig
2001-02-27 13:52:56 +00:00
committed by Martin Baulig
parent a7b13c7d83
commit a515242f17
2 changed files with 8 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
2001-02-27 Martin Baulig <baulig@suse.de> 2001-02-27 Martin Baulig <baulig@suse.de>
* netload.c: Comment out the `subnet' field on BSDI; this should
make it compile. Bug #13345.
* shm_limits.c, msg_limits.c, sem_limits.c: Applied a patch * shm_limits.c, msg_limits.c, sem_limits.c: Applied a patch
from Rolf Grossmann (grossman@securitas.net) for FreeBSD 4.2. from Rolf Grossmann (grossman@securitas.net) for FreeBSD 4.2.
Fixes #51334. Fixes #51334.

View File

@@ -41,7 +41,9 @@
static const unsigned long _glibtop_sysdeps_netload = static const unsigned long _glibtop_sysdeps_netload =
(1L << GLIBTOP_NETLOAD_IF_FLAGS) + (1L << GLIBTOP_NETLOAD_IF_FLAGS) +
(1L << GLIBTOP_NETLOAD_MTU) + (1L << GLIBTOP_NETLOAD_MTU) +
#if !defined(__bsdi__)
(1L << GLIBTOP_NETLOAD_SUBNET) + (1L << GLIBTOP_NETLOAD_SUBNET) +
#endif
(1L << GLIBTOP_NETLOAD_ADDRESS) + (1L << GLIBTOP_NETLOAD_ADDRESS) +
(1L << GLIBTOP_NETLOAD_PACKETS_IN) + (1L << GLIBTOP_NETLOAD_PACKETS_IN) +
(1L << GLIBTOP_NETLOAD_PACKETS_OUT) + (1L << GLIBTOP_NETLOAD_PACKETS_OUT) +
@@ -172,7 +174,10 @@ glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
if (ifnet.if_flags & IFF_MULTICAST) if (ifnet.if_flags & IFF_MULTICAST)
buf->if_flags |= GLIBTOP_IF_FLAGS_MULTICAST; buf->if_flags |= GLIBTOP_IF_FLAGS_MULTICAST;
#if !defined(__bsdi__)
/* Commenting out to "fix" #13345. */
buf->subnet = htonl (ifaddr.in.ia_subnet); buf->subnet = htonl (ifaddr.in.ia_subnet);
#endif
buf->address = sin->sin_addr.s_addr; buf->address = sin->sin_addr.s_addr;
buf->mtu = ifnet.if_mtu; buf->mtu = ifnet.if_mtu;