Re: [HACKERS] ss_family in hba.c - Mailing list pgsql-cygwin

From Kurt Roeckx
Subject Re: [HACKERS] ss_family in hba.c
Date
Msg-id 20030625160630.GA22773@ping.be
Whole thread Raw
In response to Re: [HACKERS] ss_family in hba.c  (Jason Tishler <jason@tishler.net>)
List pgsql-cygwin
On Tue, Jun 24, 2003 at 04:10:13PM -0400, Jason Tishler wrote:
> 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?

It seems that struct sockaddr_storage is defined in winsock2.h,
but that is only included in the win32 port.

Maybe the right solution is the include that winsock2.h instead
(through windows.h?)  And make sure configure also includes it
when doing the checks.

The headers even seem to define struct sockaddr_in6, getaddrinfo
and getnameinfo, so I wonder if cygwin supports ipv6 or not.


Kurt


pgsql-cygwin by date:

Previous
From: "Petermann, Joachim (JP)"
Date:
Subject: Re: postmaster crashes on start-up
Next
From: denis@coralindia.com
Date:
Subject: Re: psql: could not connect to server: Bad file descriptor