From: Anthony Fok Date: Fri, 15 Jan 2021 15:55:46 +0000 (+0000) Subject: Define PATH_MAX and MAXPATHLEN for GNU/Hurd compatibility X-Git-Tag: archive/raspbian/1%20201107_dfsg-4+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c972554617e8f41587ebe203046210d0622364cd;p=fontforge.git Define PATH_MAX and MAXPATHLEN for GNU/Hurd compatibility Origin: vendor Bug-Debian: https://bugs.debian.org/977954 Forwarded: no Last-Update: 2021-01-14 Last-Update: 2021-01-14 Gbp-Pq: Name 0004-hurd-PATH_MAX-and-MAXPATHLEN.patch --- diff --git a/inc/basics.h b/inc/basics.h index 7f3390f..feaf809 100644 --- a/inc/basics.h +++ b/inc/basics.h @@ -132,5 +132,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 */