mercurial/osutil.c
changeset 8722 48da69ff79bd
parent 7190 aecea6934fdd
child 8723 b4a1b9012d96
--- 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