Author: Enrico Tassi <gareuselesinge@debian.org>
Description: define PATH_MAX if not defined (i.e. on hurd)
Forwarded-Upstream: should be

---
 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
@@ -65,6 +65,10 @@
 #define PATH_MAX MAX_PATH
 #endif
 
+#ifndef PATH_MAX /* This happens, for example on the Hurd architecture */
+ #define PATH_MAX 1024
+#endif
+
 namespace {
 // Characters that are allowed in filenames, but not at the beginning
 const std::vector<std::string> illegal_filename_starting_characters{
--- a/src/wlapplication.cc
+++ b/src/wlapplication.cc
@@ -97,6 +97,10 @@
 #include "wui/interactive_player.h"
 #include "wui/interactive_spectator.h"
 
+#ifndef PATH_MAX /* This happens, for example on the Hurd architecture */
+ #define PATH_MAX 1024
+#endif
+
 namespace {
 
 /**
