]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2freefrag: fix portability problem for Hurd
authorTheodore Ts'o <tytso@mit.edu>
Fri, 2 Mar 2018 19:14:57 +0000 (14:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 2 Mar 2018 19:25:11 +0000 (14:25 -0500)
Hurd doesn't define PATH_MAX, so define a fallback definition.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e2freefrag.c

index 8d805a0391eb30af91cc657f7dbb493879864cd0..4df6903df2755deb41a567498ea9cb75f9b6f0bd 100644 (file)
@@ -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] "