summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-28 16:42:03 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-28 16:42:03 +0100
commit8cc6977a9655603bfc4aab64edddafef147da65e (patch)
tree36ba00718940ae1cd6ed3d7c706fac56a7dd4038 /src/eval.c
parentc5215e943bf5a045089693b60b8805a794d8c2f6 (diff)
downloadvim-8cc6977a9655603bfc4aab64edddafef147da65e.zip
patch 7.4.1449
Problem: Build fails with job feature but without channel feature. Solution: Add #ifdef.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index c12961aa7..4dd400ad9 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -7800,6 +7800,7 @@ job_unref(job_T *job)
{
job_free(job);
}
+# ifdef FEAT_CHANNEL
else if (job->jv_channel != NULL)
{
/* Do remove the link to the channel, otherwise it hangs
@@ -7808,6 +7809,7 @@ job_unref(job_T *job)
channel_unref(job->jv_channel);
job->jv_channel = NULL;
}
+# endif
}
}