changeset 29237:c7aa0c46acd5 v8.2.5137

patch 8.2.5137: cannot build without the +channel feature Commit: https://github.com/vim/vim/commit/509ce0383105d5b516ef2d489adb7c554d3c8f81 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 20 11:23:01 2022 +0100 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 https://github.com/vim/vim/issues/10598)
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Jun 2022 12:30:07 +0200
parents 0eef32b4ebbc
children ee6d7b2b9704
files src/os_unix.c src/regexp_bt.c src/regexp_nfa.c src/version.c
diffstat 4 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -8323,8 +8323,10 @@ start_timeout(long msec)
 	timer_created = TRUE;
     }
 
+# ifdef FEAT_JOB_CHANNEL
     ch_log(NULL, "setting timeout timer to %d sec %ld nsec",
 	       (int)interval.it_value.tv_sec, (long)interval.it_value.tv_nsec);
+# endif
     ret = timer_settime(timer_id, 0, &interval, NULL);
     if (ret < 0)
 	semsg(_(e_could_not_set_timeout_str), strerror(errno));
--- a/src/regexp_bt.c
+++ b/src/regexp_bt.c
@@ -3163,8 +3163,10 @@ bt_did_time_out(int *timed_out)
     {
 	if (timed_out != NULL)
 	{
+# ifdef FEAT_JOB_CHANNEL
 	    if (!*timed_out)
 		ch_log(NULL, "BT regexp timed out");
+# endif
 	    *timed_out = TRUE;
 	}
 	return TRUE;
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -4248,8 +4248,10 @@ nfa_did_time_out(void)
     {
 	if (nfa_timed_out != NULL)
 	{
+# ifdef FEAT_JOB_CHANNEL
 	    if (!*nfa_timed_out)
 		ch_log(NULL, "NFA regexp timed out");
+# endif
 	    *nfa_timed_out = TRUE;
 	}
 	return TRUE;
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    5137,
+/**/
     5136,
 /**/
     5135,