From 97e4f235b89c80dbef7f2c068da3ee298b73a519 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 2 Mar 2018 14:14:57 -0500 Subject: [PATCH] e2freefrag: fix portability problem for Hurd Hurd doesn't define PATH_MAX, so define a fallback definition. Signed-off-by: Theodore Ts'o --- misc/e2freefrag.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/e2freefrag.c b/misc/e2freefrag.c index 8d805a0..4df6903 100644 --- a/misc/e2freefrag.c +++ b/misc/e2freefrag.c @@ -30,6 +30,10 @@ extern int optind; #include "ext2fs/ext2fs.h" #include "e2freefrag.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + static void usage(const char *prog) { fprintf(stderr, "usage: %s [-c chunksize in kb] [-h] " -- 1.8.3.1