forked from aniani/vim
patch 8.2.5137: cannot build without the +channel feature
Problem: Cannot build without the +channel feature. (Dominique Pellé) Solution: Add #ifdef around ch_log() calls. (closes #10598)
This commit is contained in:
@@ -8323,8 +8323,10 @@ start_timeout(long msec)
|
|||||||
timer_created = TRUE;
|
timer_created = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ifdef FEAT_JOB_CHANNEL
|
||||||
ch_log(NULL, "setting timeout timer to %d sec %ld nsec",
|
ch_log(NULL, "setting timeout timer to %d sec %ld nsec",
|
||||||
(int)interval.it_value.tv_sec, (long)interval.it_value.tv_nsec);
|
(int)interval.it_value.tv_sec, (long)interval.it_value.tv_nsec);
|
||||||
|
# endif
|
||||||
ret = timer_settime(timer_id, 0, &interval, NULL);
|
ret = timer_settime(timer_id, 0, &interval, NULL);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
semsg(_(e_could_not_set_timeout_str), strerror(errno));
|
semsg(_(e_could_not_set_timeout_str), strerror(errno));
|
||||||
|
@@ -3163,8 +3163,10 @@ bt_did_time_out(int *timed_out)
|
|||||||
{
|
{
|
||||||
if (timed_out != NULL)
|
if (timed_out != NULL)
|
||||||
{
|
{
|
||||||
|
# ifdef FEAT_JOB_CHANNEL
|
||||||
if (!*timed_out)
|
if (!*timed_out)
|
||||||
ch_log(NULL, "BT regexp timed out");
|
ch_log(NULL, "BT regexp timed out");
|
||||||
|
# endif
|
||||||
*timed_out = TRUE;
|
*timed_out = TRUE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@@ -4248,8 +4248,10 @@ nfa_did_time_out(void)
|
|||||||
{
|
{
|
||||||
if (nfa_timed_out != NULL)
|
if (nfa_timed_out != NULL)
|
||||||
{
|
{
|
||||||
|
# ifdef FEAT_JOB_CHANNEL
|
||||||
if (!*nfa_timed_out)
|
if (!*nfa_timed_out)
|
||||||
ch_log(NULL, "NFA regexp timed out");
|
ch_log(NULL, "NFA regexp timed out");
|
||||||
|
# endif
|
||||||
*nfa_timed_out = TRUE;
|
*nfa_timed_out = TRUE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@@ -734,6 +734,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
5137,
|
||||||
/**/
|
/**/
|
||||||
5136,
|
5136,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user