]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libext2fs: define PATH_MAX if not provided by the system headers
authorTheodore Ts'o <tytso@mit.edu>
Sat, 23 Nov 2019 04:26:39 +0000 (23:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 Nov 2019 04:26:39 +0000 (23:26 -0500)
This is needed to compile on Illumos and its derivatives.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/dirhash.c

index d560e20b38a47a712bcb23619003adddb7ddc46a..42fe98bb3b7f1b3e58d111ff7bd1492501a2316d 100644 (file)
 #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