[Xfce4-commits] <xfce4-cpufreq-plugin:master> Fix build failure on kFreeBSD (bug #7482).

Harald Judt noreply at xfce.org
Sun Aug 18 11:32:02 CEST 2013


Updating branch refs/heads/master
         to 0f1c82d42f020331b35cbce179dfd5af008b6de8 (commit)
       from 761bd275c466d5ed18420711ac0ea360e13a6205 (commit)

commit 0f1c82d42f020331b35cbce179dfd5af008b6de8
Author: Yves-Alexis Perez <corsac at debian.org>
Date:   Wed Aug 7 11:10:36 2013 +0200

    Fix build failure on kFreeBSD (bug #7482).
    
    ...or other non-Linux systems

 panel-plugin/xfce4-cpufreq-plugin.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c
index fd9788d..1b3992f 100644
--- a/panel-plugin/xfce4-cpufreq-plugin.c
+++ b/panel-plugin/xfce4-cpufreq-plugin.c
@@ -133,11 +133,13 @@ cpufreq_update_plugin (void)
 void
 cpufreq_restart_timeout (void)
 {
+#ifdef __linux__
 	g_source_remove (cpuFreq->timeoutHandle);
 	cpuFreq->timeoutHandle = g_timeout_add_seconds (
 			cpuFreq->options->timeout,
 			(GSourceFunc)cpufreq_update_cpus,
 			NULL);
+#endif
 }
 
 static void


More information about the Xfce4-commits mailing list