From: Kurt Zeilenga Date: Mon, 9 Sep 2002 18:24:23 +0000 (+0000) Subject: Check for AFLINK before using it X-Git-Tag: OPENLDAP_REL_ENG_2_1_5~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e945261e8456d53b831d87efd8154f10e67e863;p=openldap Check for AFLINK before using it --- diff --git a/libraries/liblutil/uuid.c b/libraries/liblutil/uuid.c index d93c364eb8..81be614358 100644 --- a/libraries/liblutil/uuid.c +++ b/libraries/liblutil/uuid.c @@ -97,7 +97,7 @@ lutil_eaddr( void ) free(buf); return NULL; -#elif defined (SIOCGIFADDR) +#elif defined( SIOCGIFADDR ) && defined( AFLINK ) char buf[sizeof(struct ifreq) * 32]; struct ifconf ifc; struct ifreq *ifr; @@ -156,7 +156,7 @@ lutil_eaddr( void ) if (memcmp(eaddr, zero, sizeof(eaddr)) == 0) { /* XXX - who knows? */ lutil_entropy( eaddr, sizeof(eaddr) ); - eaddr[0] |= 0x80; /* turn it into a mutlicast address */ + eaddr[0] |= 0x80; /* turn it into a multicast address */ } return eaddr;