[PATCH] BeOS compatibility support
Andrew Bachmann
andrewbachmann at gmail.com
Tue Jan 2 23:54:21 CST 2007
# HG changeset patch
# User Andrew Bachmann <andrewbachmann at gmail.com>
# Date 1167802820 28800
# Node ID fdcb14e5009423dde24bc3027a65ae3e1482b20a
# Parent 20da40cc1c7331d759a8fd068d0769dc6af0b33d
BeOS compatibility support
diff -r 20da40cc1c73 -r fdcb14e50094 mercurial/bdiff.c
--- a/mercurial/bdiff.c Fri Dec 29 20:04:31 2006 -0600
+++ b/mercurial/bdiff.c Tue Jan 02 21:40:20 2007 -0800
@@ -33,7 +33,11 @@ static uint32_t htonl(uint32_t x)
}
#else
#include <sys/types.h>
+#ifdef __BEOS__
+#include <ByteOrder.h>
+#else
#include <arpa/inet.h>
+#endif
#include <inttypes.h>
#endif
diff -r 20da40cc1c73 -r fdcb14e50094 mercurial/mpatch.c
--- a/mercurial/mpatch.c Fri Dec 29 20:04:31 2006 -0600
+++ b/mercurial/mpatch.c Tue Jan 02 21:40:20 2007 -0800
@@ -42,7 +42,11 @@ static uint32_t ntohl(uint32_t x)
#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
More information about the Mercurial-devel
mailing list