summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-01 13:01:16 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-01 13:01:16 +0100
commitf4f190d8219fc93c6e58e54ce7c1ac15af07840f (patch)
treeeaaa9de2a1c3df85d5dce07ef21f9ef7954c4cac
parentb54b8e0c86b0590394803157818c72412a6f0b6a (diff)
downloadvim-git-f4f190d8219fc93c6e58e54ce7c1ac15af07840f.tar.gz
patch 8.2.0338: build failure without the channel featurev8.2.0338
Problem: Build failure without the channel feature. Solution: Add #ifdef
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c
index 6c519cb34..cd410bfed 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 338,
+/**/
337,
/**/
336,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index a4525ca0c..2e0c2ffa8 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -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: