changeset 19562:6b7719b8f9b9 v8.2.0338

patch 8.2.0338: build failure without the channel feature Commit: https://github.com/vim/vim/commit/f4f190d8219fc93c6e58e54ce7c1ac15af07840f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 1 13:01:16 2020 +0100 patch 8.2.0338: build failure without the channel feature Problem: Build failure without the channel feature. Solution: Add #ifdef
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Mar 2020 13:15:06 +0100
parents 8d05000d0f1e
children 5d3a4b28a95b
files src/version.c src/vim9compile.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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: