Index: libchewing/include/config.h.in
===================================================================
--- libchewing.orig/include/config.h.in	2012-04-02 14:11:15.726807284 +0800
+++ libchewing/include/config.h.in	2012-04-02 14:11:38.910922257 +0800
@@ -107,6 +107,10 @@
 /* Version number of package */
 #undef VERSION
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const
 

Index: libchewing/include/config.h.in
===================================================================
--- libchewing.orig/include/config.h.in	2012-04-02 14:11:15.726807284 +0800
+++ libchewing/include/config.h.in	2012-04-02 14:11:38.910922257 +0800
@@ -107,6 +107,10 @@
 /* Version number of package */
 #undef VERSION
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const
 

Increase the fallback PATH_MAX to 4096.
Increase the fallback PATH_MAX to 4096.
