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));