Re: SA_LEN in linux (fwd)
On Mon, Jun 04, 2001 at 12:27:17PM -0400, Nathan Lutchansky wrote:
> glibc does not use an sa_len field to store the length of sockaddr
> structs, and instead provides an SA_LEN(struct sockaddr *) macro that
> takes a pointer to a sockaddr field and returns its size based on the
> value in the sa_family field. Generally code that expects sa_len can be
> ported by changing code that reads sa_len to instead call SA_LEN() and
> simply deleting code that sets sa_len.
>
> If you're getting the error that SA_LEN is undefined, maybe you're using a
> different glibc than the rest of us. Check /usr/include/bits/sockaddr.h
> and make sure SA_LEN(x) is defined there.
Marvellous, I got the same sortof error with postfix-tls. I'll look
into this.
- Craig
--
Craig Small VK2XLZ GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/ <csmall@eye-net.com.au>
MIEEE <csmall@ieee.org> Debian developer <csmall@debian.org>
Reply to: