On Sun, 13 Jul 2003, Alan Coopersmith wrote: > What is the family member of struct sockaddr_storage then? > This could probably be worked around by changing line 338 from: > ciptr->family = sockname.ss_family; > to something like: > ciptr->family = ((struct sockaddr *)&sockname)->sa_family;
/usr/include/bits/sockaddr.h: #define __SOCKADDR_COMMON(sa_prefix) \ sa_family_t sa_prefix##family /usr/include/bits/socket.h: struct sockaddr_storage { __SOCKADDR_COMMON (__ss_); /* Address family, etc. */ __ss_aligntype __ss_align; /* Force desired alignment. */ char __ss_padding[_SS_PADSIZE]; }; > > ../../lib/xtrans/Xtranssock.c: At top level: > > ../../lib/xtrans/Xtranssock.c:1315: `MAXHOSTNAMELEN' undeclared here (not in a > > function) > > Is there some other file that needs to be included to define this? > (It's in <netdb.h> on Solaris, and <asm/param.h> on RedHat 8.) <rpc/types.h> on RedHat 6.2, 7.3 and 8.0 (I don't have access to RH9 yet) <asm/param.h> on RedHat 7.3 and 8.0, but not in 6.2. Value 64 in all cases. > Or perhaps NI_MAXHOST would be a better choice since it's defined by > RFC 2133. NI_MAXHOST is in /usr/include/netdb.h on RedHat 6.2, 7.3 and 8.0. Value 1025 on all three. Do the extra 961 bytes matter ? I don't know that IPv6 actually works with RH6.2; maybe we would be better off disabling it rather than fixing it ? Is anyone using IPv6 on other Linux 2.2 distributions ? -- Andrew C Aitchison _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel