From: Theodore Ts'o Date: Sat, 23 Nov 2019 04:26:39 +0000 (-0500) Subject: libext2fs: define PATH_MAX if not provided by the system headers X-Git-Tag: v1.45.5~32 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=612296d63ec81de5498e8a6d72b0a87f9ace616e;p=tools%2Fe2fsprogs.git 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 --- diff --git a/lib/ext2fs/dirhash.c b/lib/ext2fs/dirhash.c index d560e20..42fe98b 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