# HG changeset patch # User mpm@selenic.com # Date 1120422405 28800 # Node ID e530637ea0601bb88d00e5b21085eb862fb9688f # Parent 9a8daeff0ffad0da3429fd3570d15230340b7172 [PATCH] use instead of for ntohl/htonl -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] use instead of for ntohl/htonl From: Jed Davis This fixes the Mac OS X build problem; hopefully it won't break any other OSes, especially since SUSv3 says arpa/inet is the right header. ( http://www.opengroup.org/onlinepubs/009695399/functions/ntohl.html ) manifest hash: 2f06ff0cffefdb35e794131afcd1f34f9fdfa5cf -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCyEoFywK+sNU5EO8RAk6WAJ9v/pnr07zUXKM9EBQQGaKSZAlhxACdHrwS XTLSL6pPGAwaRfExGF2A3DQ= =Rtv9 -----END PGP SIGNATURE----- diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c --- a/mercurial/bdiff.c +++ b/mercurial/bdiff.c @@ -28,7 +28,7 @@ static uint32_t htonl(uint32_t x) } #else #include -#include +#include #endif struct line { diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c --- a/mercurial/mpatch.c +++ b/mercurial/mpatch.c @@ -39,7 +39,7 @@ static uint32_t ntohl(uint32_t x) } #else #include -#include +#include #endif static char mpatch_doc[] = "Efficient binary patching.";