aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/gkrellm/files/patch-ba22
-rw-r--r--sysutils/gkrellm/files/patch-bb32
-rw-r--r--sysutils/gkrellm2/files/patch-ba22
-rw-r--r--sysutils/gkrellm2/files/patch-bb32
4 files changed, 108 insertions, 0 deletions
diff --git a/sysutils/gkrellm/files/patch-ba b/sysutils/gkrellm/files/patch-ba
new file mode 100644
index 000000000000..5b707bd09cda
--- /dev/null
+++ b/sysutils/gkrellm/files/patch-ba
@@ -0,0 +1,22 @@
+Index: src/apm.c
+diff -u src/apm.c.orig src/apm.c
+--- src/apm.c.orig Wed Jan 2 06:06:27 2002
++++ src/apm.c Mon Feb 11 10:51:43 2002
+@@ -61,7 +61,7 @@
+
+ /* ------- FreeBSD ------------------------------------------------------- */
+
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ #include <osreldate.h>
+ #include <machine/apm_bios.h>
+ #define APMDEV "/dev/apm"
+@@ -206,7 +206,7 @@
+ return TRUE;
+ }
+
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ read_apm_data = read_freebsd_apm_data;
+ available = TRUE;
+ #endif
diff --git a/sysutils/gkrellm/files/patch-bb b/sysutils/gkrellm/files/patch-bb
new file mode 100644
index 000000000000..8fb70debf0d6
--- /dev/null
+++ b/sysutils/gkrellm/files/patch-bb
@@ -0,0 +1,32 @@
+Index: src/sensors.c
+diff -u src/sensors.c.orig src/sensors.c
+--- src/sensors.c.orig Wed Jan 2 06:48:02 2002
++++ src/sensors.c Tue Feb 12 02:49:08 2002
+@@ -228,7 +228,7 @@
+ /* ====== System dependent interface ====================================== */
+
+ /* ------- FreeBSD ------------------------------------------------------- */
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ #include <osreldate.h>
+ #include <machine/cpufunc.h>
+ #if __FreeBSD_version >= 300000
+@@ -805,7 +805,8 @@
+
+
+ /* ----- Other Systems -------------------------------------------------- */
+-#if !defined(__FreeBSD__) && !defined(__linux__) && !defined(__NetBSD__)
++#if !(defined(__FreeBSD__) && defined(__i386__)) && \
++ !defined(__linux__) && !defined(__NetBSD__)
+
+ #define SENSORS_DIR ""
+
+@@ -817,7 +818,7 @@
+ static gboolean
+ setup_sensor_interface(void)
+ {
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ get_temperature = get_freebsd_sensor;
+ get_fan = get_freebsd_sensor;
+ get_voltage = get_freebsd_sensor;
diff --git a/sysutils/gkrellm2/files/patch-ba b/sysutils/gkrellm2/files/patch-ba
new file mode 100644
index 000000000000..5b707bd09cda
--- /dev/null
+++ b/sysutils/gkrellm2/files/patch-ba
@@ -0,0 +1,22 @@
+Index: src/apm.c
+diff -u src/apm.c.orig src/apm.c
+--- src/apm.c.orig Wed Jan 2 06:06:27 2002
++++ src/apm.c Mon Feb 11 10:51:43 2002
+@@ -61,7 +61,7 @@
+
+ /* ------- FreeBSD ------------------------------------------------------- */
+
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ #include <osreldate.h>
+ #include <machine/apm_bios.h>
+ #define APMDEV "/dev/apm"
+@@ -206,7 +206,7 @@
+ return TRUE;
+ }
+
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ read_apm_data = read_freebsd_apm_data;
+ available = TRUE;
+ #endif
diff --git a/sysutils/gkrellm2/files/patch-bb b/sysutils/gkrellm2/files/patch-bb
new file mode 100644
index 000000000000..8fb70debf0d6
--- /dev/null
+++ b/sysutils/gkrellm2/files/patch-bb
@@ -0,0 +1,32 @@
+Index: src/sensors.c
+diff -u src/sensors.c.orig src/sensors.c
+--- src/sensors.c.orig Wed Jan 2 06:48:02 2002
++++ src/sensors.c Tue Feb 12 02:49:08 2002
+@@ -228,7 +228,7 @@
+ /* ====== System dependent interface ====================================== */
+
+ /* ------- FreeBSD ------------------------------------------------------- */
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ #include <osreldate.h>
+ #include <machine/cpufunc.h>
+ #if __FreeBSD_version >= 300000
+@@ -805,7 +805,8 @@
+
+
+ /* ----- Other Systems -------------------------------------------------- */
+-#if !defined(__FreeBSD__) && !defined(__linux__) && !defined(__NetBSD__)
++#if !(defined(__FreeBSD__) && defined(__i386__)) && \
++ !defined(__linux__) && !defined(__NetBSD__)
+
+ #define SENSORS_DIR ""
+
+@@ -817,7 +818,7 @@
+ static gboolean
+ setup_sensor_interface(void)
+ {
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) && defined(__i386__)
+ get_temperature = get_freebsd_sensor;
+ get_fan = get_freebsd_sensor;
+ get_voltage = get_freebsd_sensor;