diff options
author | Theodore Ts'o <tytso@mit.edu> | 2019-11-22 23:26:39 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-11-22 23:26:39 -0500 |
commit | 612296d63ec81de5498e8a6d72b0a87f9ace616e (patch) | |
tree | d246bb1f48f9c17a5c60c8db88bb701b20d2f45b | |
parent | 3f21d8239567e890b4c41cd69a617ba10cd98f75 (diff) | |
download | e2fsprogs-612296d63ec81de5498e8a6d72b0a87f9ace616e.tar.gz |
libext2fs: define PATH_MAX if not provided by the system headers
This is needed to compile on Illumos and its derivatives.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | lib/ext2fs/dirhash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ext2fs/dirhash.c b/lib/ext2fs/dirhash.c index d560e20b3..42fe98bb3 100644 --- a/lib/ext2fs/dirhash.c +++ b/lib/ext2fs/dirhash.c @@ -20,6 +20,10 @@ #include "ext2fs.h" #include "ext2fsP.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + /* * Keyed 32-bit hash function using TEA in a Davis-Meyer function * H0 = Key |