Re: 7.4beta1 build problem on unixware - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 7.4beta1 build problem on unixware
Date
Msg-id 6821.1060888500@sss.pgh.pa.us
Whole thread Raw
In response to Re: 7.4beta1 build problem on unixware  (Larry Rosenman <ler@lerctr.org>)
List pgsql-hackers
Larry Rosenman <ler@lerctr.org> writes:
>> and it BREAKS on UnixWare.  I can connect on unix domain sockets, but NOT
>> on an IP socket.
>> 
>> I'm futzing with #undef'ing HAVE_GETADDRINFO for a test.

> Ok, with using OUR src/port/getaddrinfo.c (by #undef'ing HAVE_GETADDRINFO 
> and
> adding getaddrinfo.o to Makefile.global's LIBOBJS, it works again.

I thought we might be a bit optimistic in assuming we could #define all
those macros as whatever we wanted ...

It seems getaddrinfo() exists but has no AI_NUMERICHOST flag bit on
Larry's machine ... and it actively rejects unrecognized ai_flags
settings.  The AI_NUMERICHOST flag bit seems to be inessential, so
I've just #define'd it as zero if we are using the system getaddrinfo
and we can't find a definition in <netdb.h>.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SSL Connection / Windows + Cygwin + PostgreSQL 7.4 Beta 1 question
Next
From: Tom Lane
Date:
Subject: Re: Change Request: \pset pager off in pg_dumpall