Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62708b7
)
e2freefrag: fix portability problem for Hurd
author
Theodore Ts'o
<tytso@mit.edu>
Fri, 2 Mar 2018 19:14:57 +0000
(14:14 -0500)
committer
Theodore 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
patch
|
blob
|
history
diff --git
a/misc/e2freefrag.c
b/misc/e2freefrag.c
index
8d805a0
..
4df6903
100644
(file)
--- 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] "