]> Sergey Matveev's repositories - nnn.git/commitdiff
MAX_PATH is not defined in some platforms, most notably GNU/Hurd. Therefore, I define...
authorSZ Lin (林上智) <szlin@debian.org>
Mon, 24 Apr 2017 08:03:33 +0000 (16:03 +0800)
committerSZ Lin (林上智) <szlin@debian.org>
Mon, 24 Apr 2017 08:03:33 +0000 (16:03 +0800)
nnn.c

diff --git a/nnn.c b/nnn.c
index dac7e6760d2d77e615f62a2f861cf59dbc0565c9..e24f202c393bbfd71f1e2c3e04187846fc2232ad 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -13,6 +13,9 @@
 #include <fcntl.h>
 #include <grp.h>
 #include <limits.h>
+#ifdef __gnu_hurd__
+#define PATH_MAX 4096
+#endif
 #include <locale.h>
 #include <pwd.h>
 #include <regex.h>