summaryrefslogtreecommitdiff
path: root/debian/patches/hurd-path-max-define
blob: 95f767b1e10c2d2b370e012262d3caaa4ecf1daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Add missing define of PATH_MAX for hurd.
Forwarded: not-needed
Last-Update: 2015-02-04
From: Jörg Frings-Fürst <debian@jff.email>
---
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;