patch 8.2.0338: build failure without the channel feature
Problem: Build failure without the channel feature.
Solution: Add #ifdef
diff --git a/src/version.c b/src/version.c
index 6c519cb..cd410bf 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@
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 a4525ca..2e0c2ff 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -5227,11 +5227,15 @@
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: