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 67CD69FA2C8 for ; Thu, 11 May 2006 14:23:04 -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 43373-06 for ; Thu, 11 May 2006 14:22:59 -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 E732E9FA2C3 for ; Thu, 11 May 2006 14:22:58 -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 k4BHMv4Y014843; Thu, 11 May 2006 13:22:57 -0400 (EDT) To: Mark Campbell cc: pgsql-ports@postgresql.org Subject: Re: Compiling on 8.1.3 on Openserver 5.05 In-reply-to: <44635654.6000904@ucs-software.co.za> References: <4463437E.5020108@ucs-software.co.za> <6844.1147359792@sss.pgh.pa.us> <44635654.6000904@ucs-software.co.za> Comments: In-reply-to Mark Campbell message dated "Thu, 11 May 2006 17:20:52 +0200" Date: Thu, 11 May 2006 13:22:57 -0400 Message-ID: <14842.1147368177@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/9 X-Sequence-Number: 2390 Mark Campbell writes: > I found the following: > u_long ntohl __P((u_long)), htonl __P((u_long)); > u_short ntohs __P((u_short)), htons __P((u_short)); > #define htonl(x) (x) > #define ntohs(x) (x) > #define htons(x) (x) > in /usr/include/sys/byteorder.h Hmm ... you could add "#include " but I fear you're going to need that in a lot of places. The Single Unix Spec specifies that these functions are to be declared in , and that seems to be where most systems put 'em, because I can't recall having heard many previous complaints about this sort of failure. The shortest route to success might be to modify your local copy of /usr/include/arpa/inet.h to include sys/byteorder.h, instead. BTW, it could be that arpa/inet.h already does include sys/byteorder.h, but only when some configuration symbol is defined. In that case you might want to force the configuration symbol instead. Compare HPUX, where we do CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED" in order to get access to a reasonable set of predefined symbols ... regards, tom lane