sysinfo(3) says that sys/sysinfo.h should exist but it doesn't exist. From manpage: > SYSINFO(3) FreeBSD Library Functions Manual SYSINFO(3) > > NAME > SYSINFO - GNU interface for gathering system information > > SYNOPSIS > #include <sys/sysinfo.h> > > int sysinfo(struct sysinfo *info); > > DESCRIPTION > The sysinfo() function returns common information about the > configuration and state of the system: > FreeBSD xx.xx.xx 12.2-STABLE FreeBSD 12.2-STABLE #0 r369260M: Fri Feb 12 21:13:14 PST 2021 unknown@xx.xx:/disk-samsung/sys/usr/src/amd64.amd64/sys/GENERIC amd64
sysinfo(3) is installed by the port devel/libsysinfo