From 612296d63ec81de5498e8a6d72b0a87f9ace616e Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 22 Nov 2019 23:26:39 -0500 Subject: [PATCH] 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 --- lib/ext2fs/dirhash.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.8.3.1