comparison src/configure.ac @ 25899:076f9b8e9632 v8.2.3483

patch 8.2.3483: #ifdef for using sysinfo() is incomplete Commit: https://github.com/vim/vim/commit/e2982d691186c8a9b16ecc8d831d2472088c8ed8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 6 11:27:21 2021 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 06 Oct 2021 12:30:05 +0200
parents 05d1062b1dc0
children d7e1cf30728c
comparison
equal deleted inserted replaced
25898:0c4a3229ffa0 25899:076f9b8e9632
4111 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 4111 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
4112 ], 4112 ],
4113 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYSCTL), 4113 AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYSCTL),
4114 AC_MSG_RESULT(not usable)) 4114 AC_MSG_RESULT(not usable))
4115 4115
4116 dnl sysinfo() may exist but not be Linux compatible 4116 dnl sysinfo() may exist but not be Linux compatible.
4117 dnl On some FreeBSD systems it may depend on libsysinfo, use TRY_LINK
4117 AC_MSG_CHECKING(for sysinfo) 4118 AC_MSG_CHECKING(for sysinfo)
4118 AC_TRY_COMPILE( 4119 AC_TRY_LINK(
4119 [#include <sys/types.h> 4120 [#include <sys/types.h>
4120 #include <sys/sysinfo.h>], 4121 #include <sys/sysinfo.h>],
4121 [ struct sysinfo sinfo; 4122 [ struct sysinfo sinfo;
4122 int t; 4123 int t;
4123 4124