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: Bruno Wolff III <bruno(at)wolff(dot)to>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Errors compiling hba.c in current CVS
Date: 2003-06-16 20:52:34
Message-ID: 20030616205234.GA3165@ping.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kurt Roeckx 2003-06-16 21:10:32 Re: Errors compiling hba.c in current CVS
Previous Message Bruce Momjian 2003-06-16 20:24:58 Re: PostgreSQL and Windows