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

patch 8.1.0486: can't build in MS-Windows

Problem:    Can't build in MS-Windows.
Solution:   Put mch_access() call inside #ifdef
This commit is contained in:
Bram Moolenaar 2018-10-19 17:36:01 +02:00
parent 839e81e12d
commit 42a4ea10af
2 changed files with 6 additions and 1 deletions

View File

@ -4917,7 +4917,10 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
break;
opt->jo_cwd = get_tv_string_buf_chk(item, opt->jo_cwd_buf);
if (opt->jo_cwd == NULL || !mch_isdir(opt->jo_cwd)
|| mch_access((char *)opt->jo_cwd, X_OK) != 0)
#ifndef WIN32 // Win32 directories don't have the concept of "executable"
|| mch_access((char *)opt->jo_cwd, X_OK) != 0
#endif
)
{
EMSG2(_(e_invargval), "cwd");
return FAIL;

View File

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