diff -r 6796d41be421 -r 48da69ff79bd mercurial/osutil.c --- a/mercurial/osutil.c Thu May 21 20:32:45 2009 +0200 +++ b/mercurial/osutil.c Fri Jun 05 15:08:45 2009 +0200 @@ -20,6 +20,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