# HG changeset patch # User Andrew Bachmann # Date 1167802820 28800 # Node ID 95ffa36d1d2a072a5a57f6caf7cd9e770e09e5a1 # Parent e916bc0dfdd6f0f2529ef69827b38e77efd392c4 BeOS compatibility support diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c --- a/mercurial/bdiff.c +++ b/mercurial/bdiff.c @@ -33,7 +33,11 @@ static uint32_t htonl(uint32_t x) } #else #include +#ifdef __BEOS__ +#include +#else #include +#endif #include #endif diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c --- a/mercurial/mpatch.c +++ b/mercurial/mpatch.c @@ -42,7 +42,11 @@ static uint32_t ntohl(uint32_t x) #else /* not windows */ # include -# include +# ifdef __BEOS__ +# include +# else +# include +# endif # include #endif