From 65b6297b572b3fc8969b53ca975fc530876ba5e0 Mon Sep 17 00:00:00 2001 From: Denis Gorodnichev Date: Sat, 19 Nov 2016 22:16:11 +0300 Subject: [PATCH] build with kernel 4.8 --- cpufreq/src/cpufreq-monitor-libcpufreq.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpufreq/src/cpufreq-monitor-libcpufreq.c b/cpufreq/src/cpufreq-monitor-libcpufreq.c index 228a890..40e6294 100644 --- a/cpufreq/src/cpufreq-monitor-libcpufreq.c +++ b/cpufreq/src/cpufreq-monitor-libcpufreq.c @@ -19,6 +19,10 @@ * Authors : Carlos Garc�a Campos */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include @@ -111,7 +115,7 @@ cpufreq_monitor_libcpufreq_run (CPUFreqMonitor *monitor) /* Check whether it failed because * cpu is not online. */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) +#ifdef HAVE_LIBCPUFREQ if (!cpufreq_cpu_exists (cpu)) { #else if (cpupower_is_cpu_online (cpu)) {