Package: xfce4-cpugraph-plugin
Version: 0.3-1
Severity: important
Tags: patch

Maw again,

please find attached a(nother) patch to add OS detection of GNU/k*BSD,
using their __GLIBC__ macro. If for whatever reason, upstream is
reluctant to its addition, you can use the less-portable
__FreeBSD_kernel__ one, which would only add support for GNU/kFreeBSD.

Cheers,

-- 
Cyril Brulebois
--- xfce4-cpugraph-plugin-0.3/panel-plugin/os.c	2007-03-21 06:30:27.850380000 +0100
+++ xfce4-cpugraph-plugin-0.3/panel-plugin/os.c	2007-03-21 06:30:52.000000000 +0100
@@ -4,7 +4,7 @@
 
 #include "os.h"
 
-#if defined (__linux__)
+#if defined (__linux__) || defined(__GLIBC__)
 long GetCPUUsage (int *oldusage, int *oldtotal)
 {
 	long cpu, nice, system, idle, used, total;

Reply via email to