Mercurial > vim
changeset 1611:c669f3280f59 v7.1.324
updated for version 7.1-324
author | vimboss |
---|---|
date | Fri, 20 Jun 2008 16:07:02 +0000 |
parents | 4541e06d4fb9 |
children | 3c251a30c8cc |
files | src/os_unix.h src/version.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os_unix.h +++ b/src/os_unix.h @@ -432,7 +432,13 @@ typedef struct dsc$descriptor DESC; * Unix has plenty of memory, use large buffers */ #define CMDBUFFSIZE 1024 /* size of the command processing buffer */ -#define MAXPATHL 1024 /* Unix has long paths and plenty of memory */ + +/* Use the system path length if it makes sense. */ +#if defined(PATH_MAX) && (PATH_MAX > 1000) +# define MAXPATHL PATH_MAX +#else +# define MAXPATHL 1024 +#endif #define CHECK_INODE /* used when checking if a swap file already exists for a file */