aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar SZ Lin (林上智) <szlin@debian.org>2017-04-24 16:03:33 +0800
committerGravatar SZ Lin (林上智) <szlin@debian.org>2017-04-24 16:03:33 +0800
commit1ec5eb1231910f22528c6bea2ac6b47f45b8c27a (patch)
treedd245392d350b3ff82d2424e4496cce1b6dcd65a
parent012662ab89da6058a3ffaa4f8ca06da3ac3fca3c (diff)
downloadnnn-1ec5eb1231910f22528c6bea2ac6b47f45b8c27a.tar.gz
MAX_PATH is not defined in some platforms, most notably GNU/Hurd. Therefore, I define it here to 4096 which is the same value in limits.h.
-rw-r--r--nnn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nnn.c b/nnn.c
index dac7e67..e24f202 100644
--- 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>