Define PATH_MAX and MAXPATHLEN for GNU/Hurd compatibility
authorAnthony Fok <foka@debian.org>
Fri, 15 Jan 2021 15:55:46 +0000 (15:55 +0000)
committerAnthony Fok <foka@debian.org>
Fri, 15 Jan 2021 15:55:46 +0000 (15:55 +0000)
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

index 7f3390f7ef2a71b660905c16f1c6f2a143477504..feaf809cee2ab9638520934e1f5cb75074e8c603 100644 (file)
@@ -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 */