Define PATH_MAX and MAXPATHLEN for GNU/Hurd compatibility
authorAnthony Fok <foka@debian.org>
Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)
committerAnthony Fok <foka@debian.org>
Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)
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

index b8d65823b481b7063c98c9acc5195b7a52cbbb29..14590c5b19e05eddb770bd0eabd01334116c5231 100644 (file)
@@ -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 */