Re: Errors compiling hba.c in current CVS - Mailing list pgsql-hackers

From Kurt Roeckx
Subject Re: Errors compiling hba.c in current CVS
Date
Msg-id 20030617160332.GA4795@ping.be
Whole thread Raw
In response to Re: Errors compiling hba.c in current CVS  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Errors compiling hba.c in current CVS
Next
From: Bruno Wolff III
Date:
Subject: Re: Errors compiling hba.c in current CVS