From d2b437219f20ef51a1964ccec0241770626c3510 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 7 Nov 2017 15:07:05 +0100 Subject: define PATH_MAX to a sensible upper bound if undefined --- lr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lr.c') diff --git a/lr.c b/lr.c index 23dd6b6..fa6c9ca 100644 --- a/lr.c +++ b/lr.c @@ -73,6 +73,11 @@ #define FNM_CASEFOLD FNM_IGNORECASE #endif +/* For Hurd. */ +#if !defined(PATH_MAX) +#define PATH_MAX 4096 +#endif + static int Cflag; static char *Cflags[64]; static int Gflag; -- cgit 1.4.1