ntdll: Only use sysinfo function when present.
commit59da79021a6e441e3b21b933c744aba922208ec1
authorGerald Pfeifer <gerald@pfeifer.com>
Tue, 10 Aug 2021 20:36:27 +0000 (10 22:36 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 11 Aug 2021 21:00:50 +0000 (11 23:00 +0200)
tree527a5c284eaf72677d1865463226e9a6a8944c16
parenta52b58473c4bf09e26592b5fb5ad51964b39180d
ntdll: Only use sysinfo function when present.

On some systems <sys/sysinfo.h> may be present while the sysinfo
function may not, or at least not as part of standard libraries,
so check whether the function is actually available before using
it.

This fixes builds on FreeBSD with the devel/libsysinfo present.

Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
configure
configure.ac
dlls/ntdll/unix/virtual.c
include/config.h.in