diff options
author | ume <ume@FreeBSD.org> | 2002-12-31 15:05:05 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-12-31 15:05:05 +0800 |
commit | ff4143d3b1231cadcad93fc8a1f20a1cfc89a248 (patch) | |
tree | 72bd74996e09ea51edca40fa81cd3e90044fda2e | |
parent | 5a611622bbde96a57c92798f474f1c7abcc78080 (diff) | |
download | freebsd-ports-gnome-ff4143d3b1231cadcad93fc8a1f20a1cfc89a248.tar.gz freebsd-ports-gnome-ff4143d3b1231cadcad93fc8a1f20a1cfc89a248.tar.zst freebsd-ports-gnome-ff4143d3b1231cadcad93fc8a1f20a1cfc89a248.zip |
try to fix build on Alpha.
Submitted by: bento via kris
-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 |