Bsd 4.4 has a field sa_len in struct sockaddr which is the
length of the struct. Often, sizeof(struct sockaddr) is not equal to
sockaddr.sa_len. Unfortunately, this effects the side of structures
containing sockaddrs, like struct ifreq. The size of an ifreq is,
under BSD 4.4, max(sizeof(struct ifreq),
sizeof(ifreq.ifr_name)+ifreq.ifr_caddr.sa_len). To get
krb5_xcrypto_os_localaddr to work under NetBSD and other 4.4-based
systems, the following changes were made:
* aclocal.m4: Ad KRB5_SOCKADDR_SA_LEN to determine if there appears
to be a sa_len element of struct sockaddr.
* lib/crypto/os/configure.in: use this test
* lib/crypto/os/localaddr.c: Deal with size changes if appropriate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6310
dc483132-0cff-0310-8789-
dd5450dbe970