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 == 1
        uint8_t         ss_family;
#elif SIZEOF_SOCKADDR_FAMILY == 2
        uint16_t        ss_family;
#else
#error unsupported sa_family size
#endif


And isn't this patch more for an other thread anyway?


Kurt


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to