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:
parent
839e81e12d
commit
42a4ea10af
@ -4917,7 +4917,10 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
|
|||||||
break;
|
break;
|
||||||
opt->jo_cwd = get_tv_string_buf_chk(item, opt->jo_cwd_buf);
|
opt->jo_cwd = get_tv_string_buf_chk(item, opt->jo_cwd_buf);
|
||||||
if (opt->jo_cwd == NULL || !mch_isdir(opt->jo_cwd)
|
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");
|
EMSG2(_(e_invargval), "cwd");
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
@ -792,6 +792,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 */
|
||||||
|
/**/
|
||||||
|
486,
|
||||||
/**/
|
/**/
|
||||||
485,
|
485,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user