From: Theodore Ts'o Date: Fri, 2 Mar 2018 19:14:57 +0000 (-0500) Subject: e2freefrag: fix portability problem for Hurd X-Git-Tag: v1.44.0-rc2~8^2~5 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=97e4f235b89c80dbef7f2c068da3ee298b73a519;p=tools%2Fe2fsprogs.git e2freefrag: fix portability problem for Hurd Hurd doesn't define PATH_MAX, so define a fallback definition. Signed-off-by: Theodore Ts'o --- 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] "