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

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 10 Sep 2008 01:35:15 +0200 CEST

> While checking into porting Mercurial I ran into an ifdef __BEOS__ to

Hmm mercurial shouldn't need any porting, it's a python script.
It actually runs fine on BeOS (I needed it for XEmacs and OSS).
You probably talk about the bdiff and mpatch tools that go with it...

> 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.

I think it should be ok.
It's likely only needed for net_server, as BONE has arpa/inet.h.
But it shouldn't harm as we still have ByteOrder.h anyway, does it
still build ?

François.

Other related posts: