mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
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.
This commit is contained in:
parent
012662ab89
commit
1ec5eb1231
3
nnn.c
3
nnn.c
|
@ -13,6 +13,9 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#ifdef __gnu_hurd__
|
||||||
|
#define PATH_MAX 4096
|
||||||
|
#endif
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
|
|
Loading…
Reference in a new issue