0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.2588: build failure with tiny features

Problem:    Build failure with tiny features.
Solution:   Add #ifdef.  Run recover test separately.
This commit is contained in:
Bram Moolenaar
2021-03-10 21:55:46 +01:00
parent 6635ae1437
commit 23b32a8d6b
4 changed files with 8 additions and 3 deletions

View File

@@ -1100,8 +1100,11 @@ swapfile_process_running(ZERO_BL *b0p, char_u *swap_fname UNUSED)
// process can't be running now.
if (mch_stat((char *)swap_fname, &st) != -1
&& sysinfo(&sinfo) == 0
&& st.st_mtime < time(NULL) - (override_sysinfo_uptime >= 0
? override_sysinfo_uptime : sinfo.uptime))
&& st.st_mtime < time(NULL) - (
# ifdef FEAT_EVAL
override_sysinfo_uptime >= 0 ? override_sysinfo_uptime :
# endif
sinfo.uptime))
return FALSE;
#endif
return mch_process_running(char_to_long(b0p->b0_pid));

View File

@@ -459,6 +459,7 @@ NEW_TESTS_RES = \
test_quickfix.res \
test_quotestar.res \
test_random.res \
test_recover.res \
test_regex_char_classes.res \
test_registers.res \
test_rename.res \

View File

@@ -21,7 +21,6 @@ source test_jumps.vim
source test_lispwords.vim
source test_move.vim
source test_put.vim
source test_recover.vim
source test_reltime.vim
source test_scroll_opt.vim
source test_searchpos.vim

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2588,
/**/
2587,
/**/