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: neomutt-20170225~32^2~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c16ddb67ba9af191ec0441e514684c81d0a0c5b;p=neomutt 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 2cf55b102..95c5f0e42 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