Re: [HACKERS] ss_family in hba.c

From: Kurt Roeckx <Q(at)ping(dot)be>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>, pgsql-cygwin(at)postgreSQL(dot)org
Subject: Re: [HACKERS] ss_family in hba.c
Date: 2003-06-25 16:06:31
Message-ID: 20030625160630.GA22773@ping.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-general pgsql-hackers pgsql-patches

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

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message Bernard NIZET 2003-06-25 16:25:40 Postmaster doesn't start under CygWin (semctl failed)
Previous Message Jason Tishler 2003-06-25 10:50:58 Re: User created under Win2K not found under CygWin

Browse pgsql-general by date

  From Date Subject
Next Message johnnnnnn 2003-06-25 16:10:22 Re: [GENERAL] Physical Database Configuration
Previous Message Shridhar Daithankar 2003-06-25 15:54:58 Re: [GENERAL] Physical Database Configuration

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2003-06-25 16:10:04 Re: ECPG compile error
Previous Message Michael Meskes 2003-06-25 16:06:19 Re: compile warnings

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2003-06-25 17:19:17 Re: Runtime.SGML diff ... please expedite!
Previous Message Tom Lane 2003-06-25 15:27:48 Re: pg_dump with conbin