mirror of
https://github.com/vim/vim.git
synced 2025-11-07 10:17:28 -05: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:
@@ -4113,9 +4113,10 @@ AC_TRY_COMPILE(
|
||||
AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYSCTL),
|
||||
AC_MSG_RESULT(not usable))
|
||||
|
||||
dnl sysinfo() may exist but not be Linux compatible
|
||||
dnl sysinfo() may exist but not be Linux compatible.
|
||||
dnl On some FreeBSD systems it may depend on libsysinfo, use TRY_LINK
|
||||
AC_MSG_CHECKING(for sysinfo)
|
||||
AC_TRY_COMPILE(
|
||||
AC_TRY_LINK(
|
||||
[#include <sys/types.h>
|
||||
#include <sys/sysinfo.h>],
|
||||
[ struct sysinfo sinfo;
|
||||
|
||||
Reference in New Issue
Block a user