[haiku-development] Re: Mercurial - ifdef __BEOS__ question

  • From: "Rene Gollent" <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 9 Sep 2008 18:28:19 -0500

On Tue, Sep 9, 2008 at 6:20 PM, scott mc <scottmc2@xxxxxxxxx> wrote:
> While checking into porting Mercurial I ran into an ifdef __BEOS__ to
> include <ByteOrder.h> and else include <arpa/inet.h>
> Seems Haiku has both, so which one should be used?  Since __BEOS__ is
> currently defined in Haiku it will of course use that one if no
> changes are made.
> Files in question are bdiff.c and mpatch.c in the mercurial folder.

arpa/inet.h should be the correct one, that didn't exist on BeOS prior
to BONE, hence why that port probably used ByteOrder instead.

Regards,

Rene

Other related posts: