Description: define PATH_MAX
 On gnu-hurd PATH_MAX is not defined. Set PATH_MAX to 8192 if
 it is not defined as recommended here:
 http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00025.html
 .
 The person named in the Author field signed this changelog entry.
Author: Christian T. Steigies <cts@debian.org>
Last-Update: 2011-09-07

--- a/src/fs.c
+++ b/src/fs.c
@@ -36,6 +36,11 @@
 #include "fs.h"
 #include "lcmap.h"
 
+/* PATH_MAX is not defined on gnu-hurd */
+#ifndef PATH_MAX
+#define PATH_MAX 8192
+#endif
+
 /* Paths */
 #ifndef WIN32
 #define LEVEL_PATH "/levels/"
--- a/src/levelfile.c
+++ b/src/levelfile.c
@@ -34,6 +34,11 @@
 #include "game.h"
 #include "font.h"
 
+/* PATH_MAX is not defined on gnu-hurd */
+#ifndef PATH_MAX
+#define PATH_MAX 8192
+#endif
+
 /* Open level for reading */
 int open_level(struct LevelFile *level) {
     if(level->ldat) {
--- a/tools/im_vwing.c
+++ b/tools/im_vwing.c
@@ -29,6 +29,11 @@
 
 #include "im_vwing.h"
 
+/* PATH_MAX is not defined on gnu-hurd */
+#ifndef PATH_MAX
+#define PATH_MAX 8192
+#endif
+
 /* Buffer to hold the loaded level */
 static char *leveldata;
 static int leveldata_len;
--- a/tools/importlev.c
+++ b/tools/importlev.c
@@ -36,6 +36,11 @@
 #include "im_wings.h"
 #include "im_tou.h"
 
+/* PATH_MAX is not defined on gnu-hurd */
+#ifndef PATH_MAX
+#define PATH_MAX 8192
+#endif
+
 static struct Importer importer[3];
 static const int importers=3;
 
--- a/tools/im_tou.c
+++ b/tools/im_tou.c
@@ -31,6 +31,11 @@
 #include "lcmap.h"
 #include "im_tou.h"
 
+/* PATH_MAX is not defined on gnu-hurd */
+#ifndef PATH_MAX
+#define PATH_MAX 8192
+#endif
+
 /* TOU level header
     0-21:     "TOU level file v1.4\013\010\026"
     22-25:   Offset to level artwork (jpeg)
