summaryrefslogtreecommitdiff
path: root/debian/patches/hurd-path-max-define
blob: d6b0cdb65525e7bdd840dd4f311869293a88ee58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Add missing define of PATH_MAX for hurd.
Forwarded: not-needed
Last-Update: 2015-02-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/src/io.c
===================================================================
--- trunk.orig/src/io.c
+++ trunk/src/io.c
@@ -39,6 +39,11 @@
 #	define O_CLOEXEC 0
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096 /* Hurd does not define PATH_MAX in limits.h */
+#endif
+
+
 struct HXdir {
 #if defined _WIN32
 	char *dname;