netbsd: Add battery support

This uses proplib and sysmon_envsys to determine the total charge
percentage of any number of connected batteries as well as the
AC adapter state. Should work with ACPI and non-ACPI systems.
This commit is contained in:
nia
2021-07-26 19:04:44 +02:00
committed by BenBE
parent 2e3f34f5c1
commit fdcdc54ec4
3 changed files with 104 additions and 4 deletions

View File

@ -216,6 +216,7 @@ fi
if test "$my_htop_platform" = netbsd; then
AC_SEARCH_LIBS([kvm_open], [kvm], [], [AC_MSG_ERROR([can not find required function kvm_open()])])
AC_SEARCH_LIBS([prop_dictionary_get], [prop], [], [AC_MSG_ERROR([can not find required function prop_dictionary_get()])])
fi
if test "$my_htop_platform" = openbsd; then