I fixed this upstream two months ago with
commit 59da79021a6e441e3b21b933c744aba922208ec1
Author: Gerald Pfeifer <[email protected]>
Date: Tue Aug 10 22:36:27 2021 +0200
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 <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
Easy workarounds on your end for now: build in a clean environment
(just a Poudriere provides), use packages pre-built that way, or
remove the devel/libsysinfo port (at least when building Wine).
I'll also see whether my patch can make it into the Wine 6.0 branch.
Gerald