BeOS compatibility support
authorAndrew Bachmann <andrewbachmann@gmail.com>
Tue, 02 Jan 2007 21:40:20 -0800
changeset 4073 95ffa36d1d2a
parent 4072 e916bc0dfdd6
child 4081 e6d26e71f049
BeOS compatibility support
mercurial/bdiff.c
mercurial/mpatch.c
--- a/mercurial/bdiff.c	Sun Feb 11 18:37:23 2007 +0100
+++ b/mercurial/bdiff.c	Tue Jan 02 21:40:20 2007 -0800
@@ -33,7 +33,11 @@
 }
 #else
 #include <sys/types.h>
+#ifdef __BEOS__
+#include <ByteOrder.h>
+#else
 #include <arpa/inet.h>
+#endif
 #include <inttypes.h>
 #endif
 
--- a/mercurial/mpatch.c	Sun Feb 11 18:37:23 2007 +0100
+++ b/mercurial/mpatch.c	Tue Jan 02 21:40:20 2007 -0800
@@ -42,7 +42,11 @@
 #else
 /* not windows */
 # include <sys/types.h>
-# include <arpa/inet.h>
+# ifdef __BEOS__
+#  include <ByteOrder.h>
+# else
+#  include <arpa/inet.h>
+# endif
 # include <inttypes.h>
 #endif