X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2A545528E7 for ; Mon, 8 Aug 2005 18:06:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72106-04 for ; Mon, 8 Aug 2005 21:06:20 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 286CD5286C for ; Mon, 8 Aug 2005 18:06:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j78L6CTR009206; Mon, 8 Aug 2005 17:06:12 -0400 (EDT) To: "Logan O'Sullivan Bruns" Cc: "Mohan, Ross" , pgsql-ports@postgresql.org Subject: Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST In-reply-to: <20050808200937.GV6200@pravda.gedanken.org> References: <20050808200937.GV6200@pravda.gedanken.org> Comments: In-reply-to "Logan O'Sullivan Bruns" message dated "Mon, 08 Aug 2005 13:09:37 -0700" Date: Mon, 08 Aug 2005 17:06:11 -0400 Message-ID: <9205.1123535171@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/6 X-Sequence-Number: 2181 "Logan O'Sullivan Bruns" writes: > I only have access to AIX5.1. On 5.1 the relevant prototype and > defines are in netdb.h. > The man page for has: > struct addrinfo { > int ai_flags; /* AI_PASSIVE, AI_CANONNAME */ > Note the absence of AI_NUMERICHOST. It isn't mentioned anywhere in the > man page but it is present in the header. Defined how? We do have #ifndef AI_NUMERICHOST #define AI_NUMERICHOST 0 #endif in our own code, so we should do the right thing on platforms that don't define the symbol. If AIX 5.1 defines the symbol and then chokes when you use it, that's a bug to take up with IBM, not us. regards, tom lane