Mercurial > hg-stable
changeset 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 | 6796d41be421 |
children | b4a1b9012d96 31c90d12f86c |
files | mercurial/osutil.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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