]> granicus.if.org Git - vim/commitdiff
patch 8.2.0338: build failure without the channel feature v8.2.0338
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Mar 2020 12:01:16 +0000 (13:01 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Mar 2020 12:01:16 +0000 (13:01 +0100)
Problem:    Build failure without the channel feature.
Solution:   Add #ifdef

src/version.c
src/vim9compile.c

index 6c519cb3458218778e3c1e1d0973314fbeb638cc..cd410bfed37f9942841d80999f9aed5cf92a6f1b 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    338,
 /**/
     337,
 /**/
index a4525ca0c167cb5187ba4c57422b49d4b8dfabf9..2e0c2ffa840d8f16fab43ca3ff62db61b72925c3 100644 (file)
@@ -5227,11 +5227,15 @@ delete_instr(isn_T *isn)
            break;
 
        case ISN_PUSHJOB:
+#ifdef FEAT_JOB_CHANNEL
            job_unref(isn->isn_arg.job);
+#endif
            break;
 
        case ISN_PUSHCHANNEL:
+#ifdef FEAT_JOB_CHANNEL
            channel_unref(isn->isn_arg.channel);
+#endif
            break;
 
        case ISN_UCALL: