diff options
author | vimboss <devnull@localhost> | 2008-06-20 16:07:02 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2008-06-20 16:07:02 +0000 |
commit | e97f393a81fa6bbfc8f8d033f991384cc23bd1b1 (patch) | |
tree | 51f7a558da04b6b0682570283495defa6675f07b | |
parent | 45b98c4db05b5f44ddb86cc470d86dd48cf8a7a3 (diff) | |
download | vim-e97f393a81fa6bbfc8f8d033f991384cc23bd1b1.tar.gz |
-rw-r--r-- | src/os_unix.h | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/os_unix.h b/src/os_unix.h index be6048fa..a337183c 100644 --- 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 */ diff --git a/src/version.c b/src/version.c index ab34115a..8406e897 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 324, +/**/ 323, /**/ 322, |