From: Kevin McCarthy Date: Thu, 3 Nov 2016 22:49:50 +0000 (-0700) Subject: Define PATH_MAX, it's missing on the GNU Hurd. (closes #3815) X-Git-Tag: mutt-1-8-rel~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d5eaa82bdda2d59bdffe48d27f9592e6c1921ed;p=mutt 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. --- 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