2008/6/24 björn <[EMAIL PROTECTED]>: > 2008/6/20 Bram Moolenaar <[EMAIL PROTECTED]>: >> >> >> Patch 7.1.324 >> Problem: File name path length on Unix is limited to 1024. >> Solution: Use PATH_MAX when it's more than 1000. >> Files: src/os_unix.h > > This patch adds an annoying warning message about MAXPATHL being > redefined when compiling on Mac OS X. The trivial fix is to not > define MAXPATHL in os_mac.h if it has already been defined. I've > added a diff below just for completeness (this is from Git so I'm not > sure how well it will work).
Actually, that patch was a bit of overkill. I've attached a slightly shorter patch below. Björn diff --git a/src/os_mac.h b/src/os_mac.h index 6effe10..9b33352 100644 --- a/src/os_mac.h +++ b/src/os_mac.h @@ -218,7 +218,9 @@ #define CMDBUFFSIZE 1024 /* size of the command processing buffer */ #if defined(MACOS_X_UNIX) -# define MAXPATHL 1024 +# ifndef MAXPATHL +# define MAXPATHL 1024 +# endif # define BASENAMELEN (MAXNAMLEN - 5) /* length of base of filename */ #else # define MAXPATHL 256 /* Limited by the Pascal Strings */ --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
