Author: Enrico Tassi <gareuselesinge@debian.org>
Description: define PATH_MAX if not defined (i.e. on hurd)
Forwarded-Upstream: https://github.com/widelands/widelands/issues/5614

Note that Upstream only included the first chunk. No idea whether the
second chunk is still necessary nowadays on Hurd.

---
 src/io/filesystem/filesystem.cc |    4 ++++
 src/wlapplication.cc            |    4 ++++
 2 files changed, 8 insertions(+)

--- a/src/io/filesystem/filesystem.cc
+++ b/src/io/filesystem/filesystem.cc
@@ -69,6 +69,10 @@
 #define PATH_MAX 0x10000
 #endif
 
+#ifndef PATH_MAX /* This happens, for example on the Hurd architecture */
+ #define PATH_MAX 1024
+#endif
+
 namespace {
 /// A class that makes iteration over filename_?.* templates easy. It is much faster than using
 /// regex.
--- a/src/wlapplication.cc
+++ b/src/wlapplication.cc
@@ -126,6 +126,10 @@
 	return executabledir;
 }
 
+#ifndef PATH_MAX /* This happens, for example on the Hurd architecture */
+ #define PATH_MAX 1024
+#endif
+
 namespace {
 
 /**
