Merge with crew-stable
authorBrendan Cully <brendan@kublai.com>
Sat, 06 Jun 2009 13:37:41 -0700
changeset 8723 b4a1b9012d96
parent 8721 2816239e0020 (current diff)
parent 8722 48da69ff79bd (diff)
child 8724 6e41d3c5619f
Merge with crew-stable
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 <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