BeOS compatibility support
author |
Andrew Bachmann <andrewbachmann@gmail.com> |
date |
Tue, 02 Jan 2007 21:40:20 -0800 |
parents |
e916bc0dfdd6 |
children |
e6d26e71f049 |
files |
mercurial/bdiff.c mercurial/mpatch.c |
diffstat |
2 files changed, 9 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/mercurial/bdiff.c
+++ b/mercurial/bdiff.c
@@ -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
--- a/mercurial/mpatch.c
+++ b/mercurial/mpatch.c
@@ -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