From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Campbell <mark.campbell@ucs-software.co.za>
Cc: pgsql-ports@postgresql.org
Subject: Re: Compiling on 8.1.3 on Openserver 5.05
Date: Thu, 11 May 2006 13:22:57 -0400
Message-ID: <14842.1147368177@sss.pgh.pa.us> (raw)
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>
Mark Campbell <mark.campbell@ucs-software.co.za> 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 <sys/byteorder.h>" 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 <arpa/inet.h>, 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
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: tgl@sss.pgh.pa.us, mark.campbell@ucs-software.co.za
Subject: Re: Compiling on 8.1.3 on Openserver 5.05
In-Reply-To: <14842.1147368177@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>
* 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