diff src/regexp_nfa.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_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;