projects
/
fontforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfcfcf5
)
Define PATH_MAX and MAXPATHLEN for GNU/Hurd compatibility
author
Anthony Fok
<foka@debian.org>
Fri, 15 Jan 2021 15:55:46 +0000
(15:55 +0000)
committer
Anthony 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
patch
|
blob
|
history
diff --git
a/inc/basics.h
b/inc/basics.h
index 7f3390f7ef2a71b660905c16f1c6f2a143477504..feaf809cee2ab9638520934e1f5cb75074e8c603 100644
(file)
--- 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 */