--- a/mercurial/mpatch.c Sat Sep 13 17:46:09 2008 +0200
+++ b/mercurial/mpatch.c Wed Sep 17 10:22:35 2008 +0200
@@ -52,7 +52,7 @@
#else
/* not windows */
# include <sys/types.h>
-# ifdef __BEOS__
+# if defined __BEOS__ && !defined __HAIKU__
# include <ByteOrder.h>
# else
# include <arpa/inet.h>