Revision: 7431 Author: ek.kato Date: Tue Jan 31 18:10:10 2012 Log: * replace/os_dep.h : Add check for MAXPATHLEN and PATH_MAX.
http://code.google.com/p/uim/source/detail?r=7431 Modified: /trunk/replace/os_dep.h ======================================= --- /trunk/replace/os_dep.h Wed Jan 11 00:17:24 2012 +++ /trunk/replace/os_dep.h Tue Jan 31 18:10:10 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
