[Xfce4-commits] <xfce4-cpugraph-plugin:master> Fix OpenBSD support (Bug 4228)
Florian
noreply at xfce.org
Sat Apr 17 16:16:32 CEST 2010
Updating branch refs/heads/master
to 25ef685df3b0a62ac0dc1420a904ce6216842500 (commit)
from 3a14e29e4bc658ed32b83ef6e1e605902206bdb4 (commit)
commit 25ef685df3b0a62ac0dc1420a904ce6216842500
Author: Florian Rivoal <frivoal at gmail.com>
Date: Sun Mar 7 19:37:10 2010 +0900
Fix OpenBSD support (Bug 4228)
Apply the patch offered in bug 4228 by Landry Breuil, to fix OpenBSD
support.
panel-plugin/os.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/os.c b/panel-plugin/os.c
index 60f1e1d..36dbbc0 100644
--- a/panel-plugin/os.c
+++ b/panel-plugin/os.c
@@ -189,7 +189,7 @@ CpuData *cpuData_read()
return cpudata;
}
-#elif defined (__OpenBSD_)
+#elif defined (__OpenBSD__)
static int DetectCPUNumber()
{
return 1;
@@ -199,7 +199,7 @@ CpuData *cpuData_read()
{
unsigned long user, nice, sys, bsdidle, idle;
unsigned long used, total, usage;
- static int mib[] = {CTL_KERN, KERN_CP_TIME };
+ static int mib[] = {CTL_KERN, KERN_CPTIME };
u_int64_t cp_time[CPUSTATES];
size_t len = sizeof( cp_time );
if( sysctl( mib, 2, &cp_time, &len, NULL, 0) < 0 )
@@ -227,5 +227,5 @@ CpuData *cpuData_read()
return cpudata;
}
#else
-#error "You're OS is not supported."
+#error "Your OS is not supported."
#endif
More information about the Xfce4-commits
mailing list