msb/extra/mate-applets/mate-applets-4.8+.patch
Willy Sudiarto Raharjo e2a382a374 mate-applets: Fix build with Linux Kernel 4.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
2017-05-05 14:54:54 +07:00

34 lines
1,017 B
Diff
Raw Blame History

From 65b6297b572b3fc8969b53ca975fc530876ba5e0 Mon Sep 17 00:00:00 2001
From: Denis Gorodnichev <denis.gorodnichev@gmail.com>
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<72>a Campos <carlosgc@gnome.org>
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <glib.h>
#include <glib/gi18n.h>
@@ -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)) {