X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2B4A79FA278 for ; Thu, 11 May 2006 16:51:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 63325-07 for ; Thu, 11 May 2006 16:51:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 8586C9FA19B for ; Thu, 11 May 2006 16:51:47 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k4BJpkYm004220; Thu, 11 May 2006 15:51:46 -0400 (EDT) To: Mark Campbell cc: pgsql-ports@postgresql.org 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> Comments: In-reply-to Mark Campbell message dated "Thu, 11 May 2006 21:47:59 +0200" Date: Thu, 11 May 2006 15:51:46 -0400 Message-ID: <4219.1147377106@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/14 X-Sequence-Number: 2395 Mark Campbell 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 , 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