diff -r 2816239e0020 -r b4a1b9012d96 mercurial/osutil.c --- a/mercurial/osutil.c Thu Jun 04 18:11:11 2009 -0600 +++ b/mercurial/osutil.c Sat Jun 06 13:37:41 2009 -0700 @@ -23,6 +23,11 @@ # include #endif +// some platforms lack the PATH_MAX definition (eg. GNU/Hurd) +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + #ifdef _WIN32 /* stat struct compatible with hg expectations