diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-12-31 07:05:05 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-12-31 07:05:05 +0000 |
commit | 7e59b7d71c708cb81722b02ae0feece53183a9f7 (patch) | |
tree | f0995c28f2dea7c55b58707a8e0cfdf30573a478 /sysutils/gkrellm2 | |
parent | Fix dependency generation for GCC3 (-CURRENT). (diff) |
try to fix build on Alpha.
Submitted by: bento via kris
Notes
Notes:
svn path=/head/; revision=71994
Diffstat (limited to 'sysutils/gkrellm2')
-rw-r--r-- | sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c b/sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c index 550eb8e9a624..21e8b312a46d 100644 --- a/sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c +++ b/sysutils/gkrellm2/files/patch-src::sysdeps::freebsd.c @@ -1,8 +1,21 @@ Index: src/sysdeps/freebsd.c diff -u src/sysdeps/freebsd.c.orig src/sysdeps/freebsd.c --- src/sysdeps/freebsd.c.orig Wed Oct 2 05:17:59 2002 -+++ src/sysdeps/freebsd.c Mon Oct 28 05:13:38 2002 -@@ -1210,7 +1210,9 @@ ++++ src/sysdeps/freebsd.c Tue Dec 31 15:47:32 2002 +@@ -1181,6 +1181,8 @@ + /* ===================================================================== */ + /* Sensor monitor interface */ + ++#if defined(__i386__) ++ + typedef struct + { + gchar *name; +@@ -1206,11 +1208,12 @@ + { "-5V", -1.667, 0, NULL } /* in6 -(100/60)*@ */ + }; + +-#if defined(__i386__) #include <dirent.h> #include <osreldate.h> #include <machine/cpufunc.h> @@ -13,3 +26,40 @@ diff -u src/sysdeps/freebsd.c.orig src/sysdeps/freebsd.c #include <machine/smb.h> #endif +@@ -1439,6 +1442,36 @@ + } + } + return (found_sensors | found_acpi_sensors); ++ } ++ ++#else ++ ++gboolean ++gkrellm_sys_sensors_get_temperature(gchar *path, gint id, ++ gint iodev, gint interface, gfloat *temp) ++ ++ { ++ return FALSE; ++ } ++ ++gboolean ++gkrellm_sys_sensors_get_fan(gchar *path, gint id, ++ gint iodev, gint interface, gfloat *fan) ++ { ++ return FALSE; ++ } ++ ++gboolean ++gkrellm_sys_sensors_get_voltage(gchar *path, gint id, ++ gint iodev, gint interface, gfloat *volt) ++ { ++ return FALSE; ++ } ++ ++gboolean ++gkrellm_sys_sensors_init(void) ++ { ++ return FALSE; + } + + #endif |