diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-12-12 20:43:08 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-12-13 11:47:34 +0100 |
commit | f32f0188cd140f965c5e02f7fb875116522c4b41 (patch) | |
tree | 5eeffc53cf9c7ad26f441e31df7df6a15e81fa9f /configure.ac | |
parent | e65cdf947cba77e143a31981295062f1aef6d494 (diff) |
Correct timebase for non-x86 CPUs on Darwin
Fixes: #368
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0a1f430e..a5b7093a 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |