From c16c4b1371b35b0f1f3da66ecc81cb8e58155437 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 15 Mar 2024 22:56:38 +0200 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