allow Mercurial to compile on Haiku
authorScott McCreary <scottmc2@gmail.com>
Wed, 17 Sep 2008 10:22:35 +0200
changeset 7036 bfad9865b1dc
parent 7035 9d023ef7b467
child 7037 e3f9feb9ab7e
allow Mercurial to compile on Haiku
mercurial/bdiff.c
mercurial/mpatch.c
--- a/mercurial/bdiff.c	Sat Sep 13 17:46:09 2008 +0200
+++ b/mercurial/bdiff.c	Wed Sep 17 10:22:35 2008 +0200
@@ -34,7 +34,7 @@
 }
 #else
 #include <sys/types.h>
-#ifdef __BEOS__
+#if defined __BEOS__ && !defined __HAIKU__
 #include <ByteOrder.h>
 #else
 #include <arpa/inet.h>
--- 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>