From 1ec5eb1231910f22528c6bea2ac6b47f45b8c27a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SZ=20Lin=20=28=E6=9E=97=E4=B8=8A=E6=99=BA=29?= Date: Mon, 24 Apr 2017 16:03:33 +0800 Subject: [PATCH] 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. --- nnn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nnn.c b/nnn.c index dac7e676..e24f202c 100644 --- a/nnn.c +++ b/nnn.c @@ -13,6 +13,9 @@ #include #include #include +#ifdef __gnu_hurd__ +#define PATH_MAX 4096 +#endif #include #include #include