Mercurial > vim
diff src/channel.c @ 14950:6783403ff35e v8.1.0486
patch 8.1.0486: can't build in MS-Windows
commit https://github.com/vim/vim/commit/42a4ea10af687ca56b0810bfbb8884b37fc725b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Oct 19 17:36:01 2018 +0200
patch 8.1.0486: can't build in MS-Windows
Problem: Can't build in MS-Windows.
Solution: Put mch_access() call inside #ifdef
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 19 Oct 2018 17:45:06 +0200 |
parents | cb07193c6257 |
children | ec67c6b8ef12 |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -4917,7 +4917,10 @@ get_job_options(typval_T *tv, jobopt_T * 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;