summaryrefslogtreecommitdiff
path: root/sysutils/gkrellm/patches/patch-ay
blob: 2e4330351e52ac06edfd559ed4bb409ba9bd7502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$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)
 	{