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

patch 8.2.3483: #ifdef for using sysinfo() is incomplete

Problem:    #ifdef for using sysinfo() is incomplete.
Solution:   Also check for HAVE_SYSINFO. Make autoconf check use TRY_LINK.
            (closes #8952)
This commit is contained in:
Bram Moolenaar
2021-10-06 11:27:21 +01:00
parent 78e0fa4cf4
commit e2982d6911
4 changed files with 9 additions and 5 deletions

View File

@@ -1109,7 +1109,7 @@ add_b0_fenc(
static int
swapfile_process_running(ZERO_BL *b0p, char_u *swap_fname UNUSED)
{
# ifdef HAVE_SYSINFO_UPTIME
#if defined(HAVE_SYSINFO) && defined(HAVE_SYSINFO_UPTIME)
stat_T st;
struct sysinfo sinfo;