BSD/OS 4.3 is missing the define EAI_ADDRFAMILY as referenced in ip.c. 
It is marked as obscolete.   However, it is still mentioned in the
getaddrinfo() manual page.  I have filed a bug report with BSDi.

BSD/OS 4.2 had it defined.

I have added the proper define to our port/bsdi.h, attached.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Index: src/include/port/bsdi.h
===================================================================
RCS file: /cvsroot/pgsql-server/src/include/port/bsdi.h,v
retrieving revision 1.5
diff -c -c -r1.5 bsdi.h
*** src/include/port/bsdi.h	29 Oct 2000 13:17:34 -0000	1.5
--- src/include/port/bsdi.h	22 May 2003 18:44:54 -0000
***************
*** 8,10 ****
--- 8,15 ----
  #define HAS_TEST_AND_SET
  
  typedef unsigned char slock_t;
+ 
+ /* This is marked as obsoleted in BSD/OS 4.3. */
+ #ifndef EAI_ADDRFAMILY
+ #define  EAI_ADDRFAMILY		1
+ #endif
Thu, 22 May 2003 15:12:37 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Missing EAI_ADDRFAMILY
On Thu, May 22, 2003 at 03:12:37PM -0400, Bruce Momjian wrote:
> BSD/OS 4.3 is missing the define EAI_ADDRFAMILY as referenced in ip.c. 
> It is marked as obscolete.   However, it is still mentioned in the
> getaddrinfo() manual page.  I have filed a bug report with BSDi.

There are other more intresting difference between rfc2553,
rfc3493.txt and for instance the SUS specification.

Only rfc2553 has EAI_ADDRFAMILY.
Only rfc2553 has NI_MAXHOST and NI_MAXSERV.

I'm probably forgetting some other things.


Kurt


Thu, 22 May 2003 23:47:49 +0200
Kurt Roeckx <Q@ping.be>
Re: Missing EAI_ADDRFAMILY

Oh, so this could come up on other platforms.  Interesting.  We don't
actually test for the error value, just return it from ip.c from
getaddrinfo() routines.

---------------------------------------------------------------------------

Kurt Roeckx wrote:
> On Thu, May 22, 2003 at 03:12:37PM -0400, Bruce Momjian wrote:
> > BSD/OS 4.3 is missing the define EAI_ADDRFAMILY as referenced in ip.c. 
> > It is marked as obscolete.   However, it is still mentioned in the
> > getaddrinfo() manual page.  I have filed a bug report with BSDi.
> 
> There are other more intresting difference between rfc2553,
> rfc3493.txt and for instance the SUS specification.
> 
> Only rfc2553 has EAI_ADDRFAMILY.
> Only rfc2553 has NI_MAXHOST and NI_MAXSERV.
> 
> I'm probably forgetting some other things.
> 
> 
> Kurt
> 
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Fri, 23 May 2003 00:02:51 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: Missing EAI_ADDRFAMILY