summaryrefslogtreecommitdiff
path: root/debian/patches/hurd-path-max-define
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/hurd-path-max-define')
-rw-r--r--debian/patches/hurd-path-max-define20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/hurd-path-max-define b/debian/patches/hurd-path-max-define
new file mode 100644
index 0000000..05994a7
--- /dev/null
+++ b/debian/patches/hurd-path-max-define
@@ -0,0 +1,20 @@
+Description: Add missing define of PATH_MAX for hurd.
+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
+@@ -31,6 +31,11 @@
+ #include <libHX/string.h>
+ #include "internal.h"
+
++#ifndef PATH_MAX
++#define PATH_MAX 4096 /* Hurd does not define PATH_MAX in limits.h */
++#endif
++
++
+ struct HXdir {
+ #if defined _WIN32
+ char *dname;