Description: enable build in Hurd
 define PATH_MAX in Hurd environment to enable to build.
 .
 chasen (2.4.5-2) unstable; urgency=low
 .
   * debian/patches
     - add hurd_support patch
Author: Hideki Yamane <henrich@debian.org>

---
Origin: vendor
Forwarded: no
Last-Update: 2012-06-26

Index: chasen-2.4.5/lib/chalib.c
===================================================================
--- chasen-2.4.5.orig/lib/chalib.c	2012-06-26 22:23:04.000000000 +0900
+++ chasen-2.4.5/lib/chalib.c	2012-06-26 22:24:07.889577116 +0900
@@ -35,6 +35,11 @@
 #include "literal.h"
 #include "tokenizer.h"
 
+// GNU/Hurd doen't have PATH_MAX
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 #define CHA_NAME       "ChaSen"
 
 #define STR_UNSPECIFIED "UNSPEC"
Index: chasen-2.4.5/lib/iotool.c
===================================================================
--- chasen-2.4.5.orig/lib/iotool.c	2012-06-13 18:56:17.000000000 +0900
+++ chasen-2.4.5/lib/iotool.c	2012-06-26 22:24:44.985664479 +0900
@@ -54,6 +54,11 @@
 #define REG_GRAMMAR "grammar"
 #endif
 
+// GNU/Hurd doen't have PATH_MAX
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 int Cha_lineno, Cha_lineno_error;
 int Cha_errno = 0;
 
Index: chasen-2.4.5/mkchadic/translate.c
===================================================================
--- chasen-2.4.5.orig/mkchadic/translate.c	2012-06-13 18:56:17.000000000 +0900
+++ chasen-2.4.5/mkchadic/translate.c	2012-06-26 23:23:18.734261248 +0900
@@ -47,6 +47,11 @@
 
 #define MRPH_WEIGHT_MAX USHRT_MAX
 
+// GNU/Hurd doen't have PATH_MAX
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 int dump_dic(lexicon_t *lexies, FILE *output[], da_build_t *builder);
 
 /*
