Revision: 7432
Author:   ek.kato
Date:     Tue Jan 31 18:10:59 2012
Log:      * Merge r7431 from trunk.

http://code.google.com/p/uim/source/detail?r=7432

Modified:
 /branches/1.7/replace/os_dep.h

=======================================
--- /branches/1.7/replace/os_dep.h      Wed Jan 11 00:24:17 2012
+++ /branches/1.7/replace/os_dep.h      Tue Jan 31 18:10:59 2012
@@ -52,6 +52,21 @@
 #endif
 #include <limits.h>

+#include <sys/param.h>
+#ifndef MAXPATHLEN
+# ifdef PATH_MAX
+#  define MAXPATHLEN PATH_MAX
+# else /* PATH_MAX */
+#  define MAXPATHLEN 256       /* 64 in openssh-portable */
+# endif /* PATH_MAX */
+#endif /* MAXPATHLEN */
+
+#ifndef PATH_MAX
+# ifdef _POSIX_PATH_MAX
+# define PATH_MAX _POSIX_PATH_MAX
+# endif
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif

Reply via email to