seems aix and osf are old buddies

This commit is contained in:
Doug MacEachern 2004-09-06 03:53:09 +00:00
parent e2795350fc
commit 3ba4a01afc
1 changed files with 1 additions and 1 deletions

View File

@ -898,7 +898,7 @@ int sigar_net_interface_list_get(sigar_t *sigar,
ifr = ifc.ifc_req; ifr = ifc.ifc_req;
for (n = 0; n < ifc.ifc_len; n += sizeof(struct ifreq), ifr++) { for (n = 0; n < ifc.ifc_len; n += sizeof(struct ifreq), ifr++) {
#ifdef _AIX #if defined(_AIX) || defined(__osf__) /* pass the bourbon */
if (ifr->ifr_addr.sa_family != AF_LINK) { if (ifr->ifr_addr.sa_family != AF_LINK) {
/* XXX: dunno if this is right. /* XXX: dunno if this is right.
* otherwise end up with two 'en0' and three 'lo0' * otherwise end up with two 'en0' and three 'lo0'