On Mon, Jun 16, 2003 at 05:21:01PM -0400, Bruce Momjian wrote:
>
> Does the following patch fix the problem? It doesn't use sa_family_t
> anymore.
>
> ! sa_family_t ss_family; /* address family */
[...]
> ! char dummy_sa_family[SIZEOF_SOCKADDR_FAMILY];
That is NOT going to work. Not only did you change the only
member of the struct we use, you changed it into an array.
Something like this might do it:
#if SIZEOF_SOCKADDR_FAMILY == 1uint8_t ss_family;
#elif SIZEOF_SOCKADDR_FAMILY == 2uint16_t ss_family;
#else
#error unsupported sa_family size
#endif
And isn't this patch more for an other thread anyway?
Kurt