# HG changeset patch # User Matt Mackall # Date 2009-06-08 23:16:32 # Node ID 31c90d12f86c81f516f472fd4cdca1aa62dff526 # Parent 107af208ed0be0bdb89ce2946052b0798b6e83d4 # Parent 48da69ff79bd9304f0bf7ad87f8566c16830db30 Merge with crew diff --git a/mercurial/osutil.c b/mercurial/osutil.c --- a/mercurial/osutil.c +++ b/mercurial/osutil.c @@ -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