Re: ss_family in hba.c - Mailing list pgsql-hackers

From Jason Tishler
Subject Re: ss_family in hba.c
Date
Msg-id 20030624201013.GA1712@tishler.net
Whole thread Raw
In response to Re: ss_family in hba.c  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: ss_family in hba.c
List pgsql-hackers
Bruce,

On Tue, Jun 24, 2003 at 03:04:05PM -0400, Bruce Momjian wrote:
> Kurt Roeckx wrote:
> > All that probably needed to change for cygwin was to no longer
> > use sa_family_t in the getaddrinfo.c.
>
> But Jason reported he needed that typedef for sa_family_t.  Jason, is
> that accurate.

Yes.

> If you remove the Cygwin typedef in pqcomm.h, does the compile fail?

Yes:

    gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include  -DBUILDING_DLL  -c -o
printtup.oprinttup.c 
    In file included from ../../../../src/include/libpq/libpq-be.h:22,
                     from ../../../../src/include/libpq/libpq.h:21,
                     from printtup.c:20:
    ../../../../src/include/libpq/pqcomm.h:54: parse error before "sa_family_t"
    [snip]

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: pg_get_triggerdef in pg_dump
Next
From: Robert Treat
Date:
Subject: Re: Two weeks to feature freeze