diff src/regexp_bt.c @ 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 0af5fe160e4e
children 057c26b5c33a
line wrap: on
line diff
--- 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;