On 12/3/03 2:41 PM, "Phil Flores" <email@hidden> wrote:
> I've attempted to compile both the stable release (-58, I believe) of the
> mDNSResponder code and the latest CVS (12/03/03) on a Sparc Solaris 8 server
> and an x86 Solaris 8 server. I was returned the following error on both
> mDNSPosix.c: In function `mDNSPlatformSendUDP':
> mDNSPosix.c:293: error: structure has no member named `sa_family'
It looks like the Solaris version of sockaddr_storage does not have the
sa_family field. The way the GET_SA_LEN macro is currently defined, it
relies on sa_family to determine the address family of whatever structure is
passed to it. Given this difference on Solaris, we should probably change
that version of GET_SA_LEN in mDNSUNP.h to cast as a sockaddr *, which
should always have the sa_family field. Something like this (in the #else
#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ?
sizeof(struct sockaddr_in) : sizeof(struct sockaddr))
I don't have a Solaris machine handy to try it though.
rendezvous mailing list | email@hidden
Do not post admin requests to the list. They will be ignored.