From: Theodore Ts'o Date: Mon, 20 Nov 2023 02:06:12 +0000 (-0500) Subject: tune2fs.c: define PATH_MAX if it is not defined by the system headers X-Git-Tag: v1.47.1-rc1~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=795dcc264f48098ca5b214bba7d1b94189b2e491;p=thirdparty%2Fe2fsprogs.git 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 --- diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 458f7cf6a..9ffe0d199 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"