about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-07 15:07:05 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-07 15:07:21 +0100
commitd2b437219f20ef51a1964ccec0241770626c3510 (patch)
tree6f0e15421a329f3c8f2df78539133185d8dfb9b6 /lr.c
parentc219bd79099b10529c6561e5130b2ef1c3b86cb2 (diff)
downloadlr-d2b437219f20ef51a1964ccec0241770626c3510.tar.gz
lr-d2b437219f20ef51a1964ccec0241770626c3510.tar.xz
lr-d2b437219f20ef51a1964ccec0241770626c3510.zip
define PATH_MAX to a sensible upper bound if undefined
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c5
1 files changed, 5 insertions, 0 deletions
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;