Problem: Solaris: dirent.h exposes MAXNAMLEN as 512, but the usable
file name component limit is 255 (defined in param.h). Vim
derives BASENAMELEN for generated swap file names from
MAXNAMLEN, so it creates overlong components and fails to
rename the swap file with ENAMETOOLONG (Vladimír Marek).
Solution: Override MAXNAMLEN to the effective Solaris component limit
of 255 for swap file name generation.
closes: #20573
Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
# define MAXNAMLEN NAME_MAX // for Linux before .99p3
#endif
+#if defined(__sun)
+# undef MAXNAMLEN
+# define MAXNAMLEN 255
+#endif
+
/*
* Note: if MAXNAMLEN has the wrong value, you will get error messages
* for not being able to open the swap file.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 690,
/**/
689,
/**/