pkgsrc/sysutils/gkrellm/patches/patch-ay

43 lines
940 B
Text
Raw Normal View History

$NetBSD: patch-ay,v 1.2 2006/04/13 19:14:45 cube Exp $
2006-03-19 23:10:38 +01:00
--- src/sysdeps-unix.c.orig 2006-03-30 00:23:26.000000000 +0200
2006-03-19 23:10:38 +01:00
+++ 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)();
2006-03-19 23:10:38 +01:00
#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)
{