]> granicus.if.org Git - mutt/commitdiff
Define PATH_MAX, it's missing on the GNU Hurd. (closes #3815)
authorKevin McCarthy <kevin@8t8.us>
Thu, 3 Nov 2016 22:49:50 +0000 (15:49 -0700)
committerKevin McCarthy <kevin@8t8.us>
Thu, 3 Nov 2016 22:49:50 +0000 (15:49 -0700)
I believe this patch originally came from Debian.

Modified based on a suggestion from Fabian Groffen.

mutt.h

diff --git a/mutt.h b/mutt.h
index 2cf55b102640049fc25711e381550be4677208ad..95c5f0e42db92fcc8aa48a04780c490cc93e73c7 100644 (file)
--- a/mutt.h
+++ b/mutt.h
 #include <limits.h>
 #endif
 
+/* PATH_MAX is undefined on the hurd */
+#if !defined(PATH_MAX) && defined(_POSIX_PATH_MAX)
+#define PATH_MAX _POSIX_PATH_MAX
+#endif
+
 #include <pwd.h>
 #include <grp.h>