From 1457c015c03f63223138b6e1336e21d39eb66e1d Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 16 Jun 2022 11:08:43 +0100 Subject: [PATCH] Define PATH_MAX and MAXPATHLEN for GNU/Hurd compatibility Origin: vendor Bug-Debian: https://bugs.debian.org/877795 Forwarded: https://github.com/fontforge/fontforge/pull/5046 Last-Update: 2021-01-14, 2022-06-16 Last-Update: 2021-01-14, 2022-06-16 Gbp-Pq: Name 0004-hurd-PATH_MAX-and-MAXPATHLEN.patch --- inc/basics.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/basics.h b/inc/basics.h index b8d6582..14590c5 100644 --- a/inc/basics.h +++ b/inc/basics.h @@ -123,5 +123,13 @@ static inline int imax(int a, int b) last = newitem; \ } +#ifdef __GNU__ +# ifndef PATH_MAX +# define PATH_MAX 4096 +# endif +# ifndef MAXPATHLEN +# define MAXPATHLEN 4096 +# endif +#endif #endif /* FONTFORGE_BASICS_H */ -- 2.30.2