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 20030616205234.GA3165@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 03:36:55PM -0400, Bruce Momjian wrote:
> 
> I am working on this now.  The missing typedef for sa_family_t is really
> just used for structure alignment, so I am working on a fix to define a
> char array and #define to be the same length as the native ss_family,
> because on my system sa_family_t is:
> 
>         sys/sockettypes.h:11:typedef u_char sa_family_t;
> 
> which seems to contradict the unsigned short as found by Jason on
> Cygwin, so it seems I will have to pull out the real family length, and
> use that in the structure.

You have systems using BSD 4.3 where sa_family is an unsigned short, 
and BSD 4.4, where they split it up in sa_len (a u_char) and a
sa_family (also a u_char).

I was wondering about just using the SALEN to define what we
want.


Kurt



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL and Windows
Next
From: Kurt Roeckx
Date:
Subject: Re: Errors compiling hba.c in current CVS