Author: Andreas Rönnquist
Description: Defines a fallback PATH_MAX on Hurd, where it isn't defined by default
--- a/src/file_stdio.c
+++ b/src/file_stdio.c
@@ -38,6 +38,10 @@
 #include <sys/stat.h>
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 
 /* forward declaration */
 const struct ALLEGRO_FILE_INTERFACE _al_file_interface_stdio;
--- a/src/fshook_stdio.c
+++ b/src/fshook_stdio.c
@@ -124,6 +124,10 @@
    #define WRAP_READDIR(d)          (readdir(d))
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 
 typedef struct ALLEGRO_FS_ENTRY_STDIO ALLEGRO_FS_ENTRY_STDIO;
 
--- a/src/unix/upath.c
+++ b/src/unix/upath.c
@@ -41,6 +41,9 @@
 
 ALLEGRO_DEBUG_CHANNEL("upath")
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
 
 #ifndef ALLEGRO_MACOSX
 /* _find_executable_file:
