From 9d5eaa82bdda2d59bdffe48d27f9592e6c1921ed Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Thu, 3 Nov 2016 15:49:50 -0700 Subject: [PATCH] Define PATH_MAX, it's missing on the GNU Hurd. (closes #3815) I believe this patch originally came from Debian. Modified based on a suggestion from Fabian Groffen. --- mutt.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mutt.h b/mutt.h index 2cf55b10..95c5f0e4 100644 --- a/mutt.h +++ b/mutt.h @@ -52,6 +52,11 @@ #include #endif +/* PATH_MAX is undefined on the hurd */ +#if !defined(PATH_MAX) && defined(_POSIX_PATH_MAX) +#define PATH_MAX _POSIX_PATH_MAX +#endif + #include #include -- 2.40.0