aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2018-03-02 14:14:57 -0500
committerTheodore Ts'o <tytso@mit.edu>2018-03-02 14:25:11 -0500
commit97e4f235b89c80dbef7f2c068da3ee298b73a519 (patch)
treec759c3c674bde456d9083d3f850fc48d44175b6f
parent62708b7ab1239dcd683b10fe9aa91c268ae77b07 (diff)
downloade2fsprogs-97e4f235b89c80dbef7f2c068da3ee298b73a519.tar.gz
e2freefrag: fix portability problem for Hurd
Hurd doesn't define PATH_MAX, so define a fallback definition. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--misc/e2freefrag.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/e2freefrag.c b/misc/e2freefrag.c
index 8d805a039..4df6903df 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] "