[Xfce4-commits] <xfce4-cpugraph-plugin:master> Add support for GNU/kFreeBSD
Florian
noreply at xfce.org
Sat Apr 17 17:00:01 CEST 2010
Updating branch refs/heads/master
to 7cc4b20cfd569fb3702d42124d5c5344422a0825 (commit)
from 6d680d270c0793a7249791512a582ceb6da46758 (commit)
commit 7cc4b20cfd569fb3702d42124d5c5344422a0825
Author: Florian <frivoal at gmail.com>
Date: Sat Apr 17 23:55:19 2010 +0900
Add support for GNU/kFreeBSD
Compile as if on linux when on GNU/kFreeBSD. FreeBSD offers linux /proc
emulation, so it should work just fine. Fix bug 3041.
panel-plugin/os.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/os.c b/panel-plugin/os.c
index e7d89ca..c58e44a 100644
--- a/panel-plugin/os.c
+++ b/panel-plugin/os.c
@@ -7,7 +7,7 @@
#include <stdio.h>
#include <string.h>
-#if defined (__linux__)
+#if defined (__linux__) || defined (__FreeBSD_kernel__)
#define PROC_STAT "/proc/stat"
#define PROCMAXLNLEN 256 /* should make it */
#endif
@@ -43,7 +43,7 @@
#include <nlist.h>
#endif
-#if defined (__linux__)
+#if defined (__linux__) || defined (__FreeBSD_kernel__)
guint detect_cpu_number()
{
guint nb_lines= 0;
More information about the Xfce4-commits
mailing list