Re: Errors compiling hba.c in current CVS

From: Kurt Roeckx <Q(at)ping(dot)be>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Errors compiling hba.c in current CVS
Date: 2003-06-17 16:03:32
Message-ID: 20030617160332.GA4795@ping.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 == 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-17 16:34:53 Re: Errors compiling hba.c in current CVS
Previous Message Bruno Wolff III 2003-06-17 15:57:26 Re: Errors compiling hba.c in current CVS