From 795dcc264f48098ca5b214bba7d1b94189b2e491 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 19 Nov 2023 21:06:12 -0500 Subject: [PATCH] tune2fs.c: define PATH_MAX if it is not defined by the system headers This is needed to compile on GNU/Hurd. Addresses-Debian-Bug: #1056145 Signed-off-by: Theodore Ts'o --- misc/tune2fs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 458f7cf..9ffe0d1 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -51,11 +51,15 @@ extern int optind; #include #include #include -#include +#include /* for PATH_MAX */ #ifdef HAVE_SYS_IOCTL_H #include #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + #include "ext2fs/ext2_fs.h" #include "ext2fs/ext2fs.h" #include "ext2fs/kernel-jbd.h" -- 1.8.3.1