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
41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
$NetBSD: patch-ao,v 1.3 2006/04/13 19:14:45 cube Exp $
|
|
|
|
--- server/sysdeps-unix.c.orig 2006-03-30 00:23:50.000000000 +0200
|
|
+++ server/sysdeps-unix.c
|
|
@@ -24,9 +24,6 @@
|
|
|
|
#include "../src/gkrellm-sysdeps.h"
|
|
|
|
-static gboolean (*mbmon_check_func)();
|
|
-static gint gkrellm_connect_to(gchar *, gint);
|
|
-
|
|
#if defined(__linux__)
|
|
#include "../src/sysdeps/linux.c"
|
|
#include "../src/sysdeps/sensors-common.c"
|
|
@@ -43,10 +40,17 @@ static gint gkrellm_connect_to(gchar *,
|
|
#include "../src/sysdeps/sensors-common.c"
|
|
#endif
|
|
|
|
+#if defined(__DragonFly__)
|
|
+#include "../src/sysdeps/dragonfly.c"
|
|
+#include "../src/sysdeps/bsd-common.c"
|
|
+#include "../src/sysdeps/sensors-common.c"
|
|
+#endif
|
|
+
|
|
#if defined(__NetBSD__)
|
|
#include "../src/sysdeps/netbsd.c"
|
|
#include "../src/sysdeps/bsd-net-open.c"
|
|
#include "../src/sysdeps/bsd-common.c"
|
|
+#include "../src/sysdeps/sensors-common.c"
|
|
#endif
|
|
|
|
#if defined(__OpenBSD__)
|
|
@@ -123,7 +127,7 @@ gkrellm_sensors_linux_name_fix(gchar *id
|
|
}
|
|
|
|
#ifdef SENSORS_COMMON
|
|
-static gint
|
|
+gint
|
|
gkrellm_connect_to(gchar *server, gint server_port)
|
|
{
|
|
gint fd = -1;
|