diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-19 17:36:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-19 17:36:01 +0200 |
commit | 42a4ea10af687ca56b0810bfbb8884b37fc725b3 (patch) | |
tree | 5048827ce44ba2b199f8d131c3bb19e34c5dea49 /src | |
parent | 839e81e12d81377f74ffc03f8645ce52cbc18b13 (diff) | |
download | vim-git-42a4ea10af687ca56b0810bfbb8884b37fc725b3.tar.gz |
patch 8.1.0486: can't build in MS-Windowsv8.1.0486
Problem: Can't build in MS-Windows.
Solution: Put mch_access() call inside #ifdef
Diffstat (limited to 'src')
-rw-r--r-- | src/channel.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c index 02ed3a8fc..0ca6e5495 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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; diff --git a/src/version.c b/src/version.c index 4ed8adc26..726f5eeae 100644 --- a/src/version.c +++ b/src/version.c @@ -793,6 +793,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 486, +/**/ 485, /**/ 484, |