0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.0460: can't build on HPUX

Problem:    Can't build on HPUX.
Solution:   Fix argument names in vim_stat(). (John Marriott)
This commit is contained in:
Bram Moolenaar 2017-03-16 12:22:38 +01:00
parent fe70c51983
commit d8492792f2
2 changed files with 4 additions and 2 deletions

View File

@ -3365,7 +3365,7 @@ vim_chdirfile(char_u *fname)
* The Vim code assumes a trailing slash is only ignored for a directory. * The Vim code assumes a trailing slash is only ignored for a directory.
*/ */
static int static int
illegal_slash(char *name) illegal_slash(const char *name)
{ {
if (name[0] == NUL) if (name[0] == NUL)
return FALSE; /* no file name is not illegal */ return FALSE; /* no file name is not illegal */
@ -3384,7 +3384,7 @@ vim_stat(const char *name, stat_T *stp)
{ {
/* On Solaris stat() accepts "file/" as if it was "file". Return -1 if /* On Solaris stat() accepts "file/" as if it was "file". Return -1 if
* the name ends in "/" and it's not a directory. */ * the name ends in "/" and it's not a directory. */
return illegal_slash(n) ? -1 : stat(n, p); return illegal_slash(name) ? -1 : stat(name, stp);
} }
#endif #endif

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
460,
/**/ /**/
459, 459,
/**/ /**/