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