From: Mark Campbell <mark.campbell@ucs-software.co.za>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-ports@postgresql.org
Subject: Re: Compiling on 8.1.3 on Openserver 5.05
Date: Thu, 11 May 2006 21:47:59 +0200
Message-ID: <446394EF.8000509@ucs-software.co.za> (raw)
In-Reply-To: <26180.1147375495@sss.pgh.pa.us>
References: <4463437E.5020108@ucs-software.co.za>
<6844.1147359792@sss.pgh.pa.us>
<44635654.6000904@ucs-software.co.za>
<14842.1147368177@sss.pgh.pa.us>
<44638C47.6010707@ucs-software.co.za>
<26180.1147375495@sss.pgh.pa.us>
I have the this bit of code in netdb.h
/*
* Error return codes from gethostbyname() and gethostbyaddr() (left in
* extern int h_errno).
*/
#define NETDB_INTERNAL -1 /* see errno */
#define NETDB_SUCCESS 0 /* no problem */
#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
#define TRY_AGAIN 2 /* Non-Authoritive Host not found, or
* SERVERFAIL */
#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED,
* NOTIMP */
#define NO_DATA 4 /* Valid name, no data record of requested
* type */
#define NO_ADDRESS NO_DATA /* no address, look for MX record */
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;
Tom Lane wrote:
>Mark Campbell <mark.campbell@ucs-software.co.za> writes:
>
>
>>Looks correct as some of the errors seem to be gone, however where would
>>I have to add/include the "h_errno" and the "warning: unreachable code
>>at beginning of switch statement" worries me
>>
>>
>
>h_errno ought to be declared in <netdb.h> according to the standard.
>Can you find it on your machine?
>
> regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-ports@postgresql.org
Cc: mark.campbell@ucs-software.co.za, tgl@sss.pgh.pa.us
Subject: Re: Compiling on 8.1.3 on Openserver 5.05
In-Reply-To: <446394EF.8000509@ucs-software.co.za>
References: <4463437E.5020108@ucs-software.co.za> <6844.1147359792@sss.pgh.pa.us> <44635654.6000904@ucs-software.co.za> <14842.1147368177@sss.pgh.pa.us> <44638C47.6010707@ucs-software.co.za> <26180.1147375495@sss.pgh.pa.us> <446394EF.8000509@ucs-software.co.za>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox