From c972554617e8f41587ebe203046210d0622364cd Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 15 Jan 2021 15:55:46 +0000 Subject: [PATCH] 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 --- inc/basics.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.30.2