summaryrefslogtreecommitdiff
path: root/sysutils/xfce4-battery-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xfce4-battery-plugin')
-rw-r--r--sysutils/xfce4-battery-plugin/Makefile2
-rw-r--r--sysutils/xfce4-battery-plugin/files/patch-panel-plug-battery.c37
2 files changed, 38 insertions, 1 deletions
diff --git a/sysutils/xfce4-battery-plugin/Makefile b/sysutils/xfce4-battery-plugin/Makefile
index be8ff237a931..e6321caf8164 100644
--- a/sysutils/xfce4-battery-plugin/Makefile
+++ b/sysutils/xfce4-battery-plugin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xfce4-battery-plugin
PORTVERSION= 0.5.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= sysutils xfce
MASTER_SITES= http://goodies.xfce.org/releases/${PORTNAME}/
DIST_SUBDIR= xfce4
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) {
+
+