Correct timebase for non-x86 CPUs on Darwin

Fixes: #368
This commit is contained in:
Benny Baumann
2020-12-12 20:43:08 +01:00
parent e65cdf947c
commit f32f0188cd
4 changed files with 27 additions and 2 deletions

View File

@ -240,6 +240,11 @@ else
AC_SEARCH_LIBS([keypad], [tinfo])
fi
if test "$my_htop_platform" = "darwin"; then
AC_CHECK_HEADERS([mach/mach_time.h])
AC_CHECK_FUNCS([mach_timebase_info])
fi
if test "$my_htop_platform" = "freebsd"; then
AC_CHECK_LIB([kvm], [kvm_open], [], [missing_libraries="$missing_libraries libkvm"])
fi