[Xfce4-commits] <xfce4-systemload-plugin:master> Add support for GNU/kFreeBSD
Florian Rivoal
noreply at xfce.org
Thu Oct 14 17:20:02 CEST 2010
Updating branch refs/heads/master
to 3f4905e77345a6c381912dbc53d3462700d400a9 (commit)
from 7a83fe84b96cc07011b4f5a123466c54be3f5c84 (commit)
commit 3f4905e77345a6c381912dbc53d3462700d400a9
Author: Florian Rivoal <frivoal at xfce.org>
Date: Sun Oct 10 16:10:23 2010 +0900
Add support for GNU/kFreeBSD
Apply the patch provided in bug 2996, to treat GNU/kFreeBSD as if it was
Linux.
panel-plugin/cpu.c | 2 +-
panel-plugin/memswap.c | 2 +-
panel-plugin/uptime.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/cpu.c b/panel-plugin/cpu.c
index 948ffac..bc9928d 100644
--- a/panel-plugin/cpu.c
+++ b/panel-plugin/cpu.c
@@ -37,7 +37,7 @@
#include <libxfcegui4/dialogs.h>
#include "cpu.h"
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD_kernel__)
#define PROC_STAT "/proc/stat"
/* user, nice, system, interrupt(BSD specific), idle */
diff --git a/panel-plugin/memswap.c b/panel-plugin/memswap.c
index fe36dc9..6c25bbd 100644
--- a/panel-plugin/memswap.c
+++ b/panel-plugin/memswap.c
@@ -32,7 +32,7 @@
#include "memswap.h"
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD_kernel__)
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/panel-plugin/uptime.c b/panel-plugin/uptime.c
index 007a96a..f6a30f6 100644
--- a/panel-plugin/uptime.c
+++ b/panel-plugin/uptime.c
@@ -34,7 +34,7 @@
#include "uptime.h"
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD_kernel__)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
More information about the Xfce4-commits
mailing list