diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c --- a/mercurial/mpatch.c +++ b/mercurial/mpatch.c @@ -24,6 +24,7 @@ #include #include #ifdef _WIN32 +#include static uint32_t ntohl(uint32_t x) { return ((x & 0x000000ffUL) << 24) | @@ -32,6 +33,7 @@ static uint32_t ntohl(uint32_t x) ((x & 0xff000000UL) >> 24); } #else +#include #include #endif