patch 8.2.2947: build failure without the channel feature
Problem: Build failure without the channel feature.
Solution: Add back #ifdef. (John Marriott)
diff --git a/src/eval.c b/src/eval.c
index 1fb1f5e..d0007bb 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5059,6 +5059,7 @@
case VAR_JOB:
case VAR_CHANNEL:
+#ifdef FEAT_JOB_CHANNEL
*tofree = NULL;
r = tv->v_type == VAR_JOB ? job_to_string_buf(tv, numbuf)
: channel_to_string_buf(tv, numbuf);
@@ -5067,6 +5068,7 @@
*tofree = string_quote(r, FALSE);
r = *tofree;
}
+#endif
break;
case VAR_INSTR: