Mercurial > vim
comparison src/eval.c @ 8314:4e057409f1d7 v7.4.1449
commit https://github.com/vim/vim/commit/8cc6977a9655603bfc4aab64edddafef147da65e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 28 16:42:03 2016 +0100
patch 7.4.1449
Problem: Build fails with job feature but without channel feature.
Solution: Add #ifdef.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 28 Feb 2016 16:45:04 +0100 |
parents | aec8f8ce8e4c |
children | 190d8084cb3a |
comparison
equal
deleted
inserted
replaced
8313:973c585fee01 | 8314:4e057409f1d7 |
---|---|
7798 if (job->jv_status != JOB_STARTED | 7798 if (job->jv_status != JOB_STARTED |
7799 || (job->jv_stoponexit == NULL && job->jv_exit_cb == NULL)) | 7799 || (job->jv_stoponexit == NULL && job->jv_exit_cb == NULL)) |
7800 { | 7800 { |
7801 job_free(job); | 7801 job_free(job); |
7802 } | 7802 } |
7803 # ifdef FEAT_CHANNEL | |
7803 else if (job->jv_channel != NULL) | 7804 else if (job->jv_channel != NULL) |
7804 { | 7805 { |
7805 /* Do remove the link to the channel, otherwise it hangs | 7806 /* Do remove the link to the channel, otherwise it hangs |
7806 * around until Vim exits. See job_free() for refcount. */ | 7807 * around until Vim exits. See job_free() for refcount. */ |
7807 job->jv_channel->ch_job = NULL; | 7808 job->jv_channel->ch_job = NULL; |
7808 channel_unref(job->jv_channel); | 7809 channel_unref(job->jv_channel); |
7809 job->jv_channel = NULL; | 7810 job->jv_channel = NULL; |
7810 } | 7811 } |
7812 # endif | |
7811 } | 7813 } |
7812 } | 7814 } |
7813 | 7815 |
7814 /* | 7816 /* |
7815 * Allocate a job. Sets the refcount to one and sets options default. | 7817 * Allocate a job. Sets the refcount to one and sets options default. |