Re: Compiling on 8.1.3 on Openserver 5.05

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Campbell <mark(dot)campbell(at)ucs-software(dot)co(dot)za>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Compiling on 8.1.3 on Openserver 5.05
Date: 2006-05-11 19:51:46
Message-ID: 4219.1147377106@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-ports

Mark Campbell <mark(dot)campbell(at)ucs-software(dot)co(dot)za> writes:
> and this in resolv.h

> /*
> * This used to be defined in res_query.c, now it's in herror.c. It was
> * never extern'd by any *.h file before it was placed here. herror.c is
> * part of libresolv.a even though it might make more sense in libnetdb.a
> * or even libnet.a.
> */

> extern int h_errno;

So reading the standard isn't high on their to-do list for resolving
such questions :-(

Although you could probably fix this with #include <resolv.h>, that
seems a bit random to me. Why don't you try this instead in
getaddrinfo.c:

#ifndef h_errno
extern int h_errno;
#endif

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Mayer 2006-05-11 20:04:16 Re: [PERFORM] Arguments Pro/Contra Software Raid
Previous Message Mark Campbell 2006-05-11 19:47:59 Re: Compiling on 8.1.3 on Openserver 5.05

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Wong 2006-05-11 19:53:21 Re: XLOG_BLCKSZ vs. wal_buffers table
Previous Message Martijn van Oosterhout 2006-05-11 19:50:14 Re: sblock state on FreeBSD 6.1

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2006-05-11 21:04:59 Re: solaris build problem with Sun compilers
Previous Message Mark Campbell 2006-05-11 19:47:59 Re: Compiling on 8.1.3 on Openserver 5.05