summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-06 11:27:21 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-06 11:27:21 +0100
commite2982d691186c8a9b16ecc8d831d2472088c8ed8 (patch)
tree233a1c1a37dd0bab076f4adac3bb7d2f5dd98cf1 /src/memline.c
parent78e0fa4cf4fcd563c0bc8c87afa54d4f5dc22020 (diff)
downloadvim-git-e2982d691186c8a9b16ecc8d831d2472088c8ed8.tar.gz
patch 8.2.3483: #ifdef for using sysinfo() is incompletev8.2.3483
Problem: #ifdef for using sysinfo() is incomplete. Solution: Also check for HAVE_SYSINFO. Make autoconf check use TRY_LINK. (closes #8952)
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memline.c b/src/memline.c
index 9fc689f6c..b43f10e12 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -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;