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