]> granicus.if.org Git - vim/commitdiff
patch 8.1.0486: can't build in MS-Windows v8.1.0486
authorBram Moolenaar <Bram@vim.org>
Fri, 19 Oct 2018 15:36:01 +0000 (17:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 19 Oct 2018 15:36:01 +0000 (17:36 +0200)
Problem:    Can't build in MS-Windows.
Solution:   Put mch_access() call inside #ifdef

src/channel.c
src/version.c

index 02ed3a8fc7151663134eae45e67029f3c748de30..0ca6e549544b74a74e03b7987ea69a66f5673575 100644 (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;
index 4ed8adc2653c2819eea4dd46d40ffd639801f328..726f5eeae213614ceacd28d010e693525029cf74 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    486,
 /**/
     485,
 /**/