Mercurial > public > mercurial-scm > hg-stable
diff mercurial/osutil.c @ 8722:48da69ff79bd
Some platforms lack the PATH_MAX definition (eg. GNU/Hurd).
Thanks to ronny for making it cleaner.
author | Arne Babenhauserheide <bab@draketo.de> |
---|---|
date | Fri, 05 Jun 2009 15:08:45 +0200 |
parents | aecea6934fdd |
children | b4a1b9012d96 |
line wrap: on
line diff
--- 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 <unistd.h> #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