diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-01-21 12:33:19 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-01-21 12:33:19 +0000 |
commit | aafad8e1bd53cd69cffc108977a691f3f3999071 (patch) | |
tree | 20b2a1384a3d2b2345981a4eb6e1cf7c40c923ce /sysutils/xfce4-battery-plugin | |
parent | 6dd50d1fe462f2237bf7f8f34926514b03d2eea1 (diff) | |
download | ports-aafad8e1bd53cd69cffc108977a691f3f3999071.tar.gz ports-aafad8e1bd53cd69cffc108977a691f3f3999071.zip |
Notes
Diffstat (limited to 'sysutils/xfce4-battery-plugin')
-rw-r--r-- | sysutils/xfce4-battery-plugin/files/patch-panel-plug-battery.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sysutils/xfce4-battery-plugin/files/patch-panel-plug-battery.c b/sysutils/xfce4-battery-plugin/files/patch-panel-plug-battery.c new file mode 100644 index 000000000000..0841aa95cda5 --- /dev/null +++ b/sysutils/xfce4-battery-plugin/files/patch-panel-plug-battery.c @@ -0,0 +1,37 @@ + + +Patch attached with submission follows: + +--- panel-plugin/battery.c (revision 3756) ++++ panel-plugin/battery.c (working copy) +@@ -25,7 +25,7 @@ + #include <config.h> + #endif + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) && (defined(i386) || defined(__i386__)) + #include <machine/apm_bios.h> + #elif __OpenBSD__ + #include <sys/param.h> +@@ -163,7 +163,9 @@ + except that is does not work on FreeBSD + + */ ++#ifdef APMDEVICE + struct apm_info apm; ++#endif + int fd; + + /* First check to see if ACPI is available */ +@@ -310,7 +312,9 @@ + acline = apm.ac_state ? TRUE : FALSE; + + #else ++#ifdef APMDEVICE + struct apm_info apm; ++#endif + DBG ("Updating battery status..."); + + if(battmon->method == BM_BROKEN) { + + |