49914b64c3
pkgsrc changes: - introduce various patches to fix compilation problems (gkrellm is a complete mess). - activate sensors-common.c on NetBSD. 2.2.9 - Fri Mar 31, 2006 ------------------------ * Bugfixes o Segfault if select config Builtins->Battery with no batteries present. 2.2.8 - Thu Mar 30, 2006 ------------------------ * Add battery monitor option to use percent capacity remaining for alerts. * Filippo Giunchedi linux.c patch: make sensor code able to read apple/pmu's sysfs based sensors. * Jindrich Makovicka linux.c patch: subtract the memory allocated to slabs from the used memory and add it to the cached value instead. * Put multiple instances lock files in /var/lock. * Bugfixes: o Fix gkrellm_125_sequence() off by a bit here and there. o Invalidate chart text runs when chart height changed. o mbmon sensors decimal point char can be different from current locale. o Read linux cpu stats from /proc/stat as 64 bits. o Segfault on editing disk chart format string after disabling a disk. o gkrellmd -plog segfaulted if no plugins are installed. o Don't NULL serve_name prior to each gkrellmd plugin serve_data call. o Use a per client input_func in gkrellmd_client_read(). * Translation updates o bg.po new Bulgarian translation by Vasko Vasilev. o es.po from Cristian Othon Martinez Vera o ru.po from Vitaly Lipatov
42 lines
940 B
Text
42 lines
940 B
Text
$NetBSD: patch-ay,v 1.2 2006/04/13 19:14:45 cube Exp $
|
|
|
|
--- src/sysdeps-unix.c.orig 2006-03-30 00:23:26.000000000 +0200
|
|
+++ src/sysdeps-unix.c
|
|
@@ -24,8 +24,6 @@
|
|
#include "gkrellm-sysdeps.h"
|
|
|
|
|
|
-static gboolean (*mbmon_check_func)();
|
|
-
|
|
|
|
#if defined(__linux__)
|
|
#include "sysdeps/linux.c"
|
|
@@ -43,10 +41,17 @@ static gboolean (*mbmon_check_func)();
|
|
#include "sysdeps/sensors-common.c"
|
|
#endif
|
|
|
|
+#if defined(__DragonFly__)
|
|
+#include "sysdeps/dragonfly.c"
|
|
+#include "sysdeps/bsd-common.c"
|
|
+#include "sysdeps/sensors-common.c"
|
|
+#endif
|
|
+
|
|
#if defined(__NetBSD__)
|
|
#include "sysdeps/netbsd.c"
|
|
#include "sysdeps/bsd-net-open.c"
|
|
#include "sysdeps/bsd-common.c"
|
|
+#include "sysdeps/sensors-common.c"
|
|
#endif
|
|
|
|
#if defined(__OpenBSD__)
|
|
@@ -65,6 +70,10 @@ static gboolean (*mbmon_check_func)();
|
|
|
|
#include <sys/utsname.h>
|
|
|
|
+#ifndef SENSORS_COMMON
|
|
+static gboolean (*mbmon_check_func)();
|
|
+#endif
|
|
+
|
|
gchar *
|
|
gkrellm_sys_get_host_name(void)
|
|
{
|