mirror of
https://github.com/vim/vim.git
synced 2025-11-10 10:47:23 -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:
5
src/auto/configure
vendored
5
src/auto/configure
vendored
@@ -13954,7 +13954,7 @@ main ()
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
|
||||
|
||||
@@ -13962,7 +13962,8 @@ else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
|
||||
$as_echo "not usable" >&6; }
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
|
||||
$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
|
||||
|
||||
Reference in New Issue
Block a user