summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminoura <minoura>2001-10-31 01:44:36 +0000
committerminoura <minoura>2001-10-31 01:44:36 +0000
commitd0d164b65ed1985499ba001498b810fb27e3b95f (patch)
tree1df7bf96033fff0210bedb0881196d8dc0baaaf3
parent45f402db1516143491a0746500f11131e38ee6dd (diff)
downloadpkgsrc-d0d164b65ed1985499ba001498b810fb27e3b95f.tar.gz
Follow the recent API change in APM_IOC_GETPOWER, fixing pkg/14403.
Reviewed by wiz.
-rw-r--r--x11/gnome-applets/distinfo3
-rw-r--r--x11/gnome-applets/patches/patch-ak14
2 files changed, 16 insertions, 1 deletions
diff --git a/x11/gnome-applets/distinfo b/x11/gnome-applets/distinfo
index d221ac62462..c0862d9ab83 100644
--- a/x11/gnome-applets/distinfo
+++ b/x11/gnome-applets/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2001/10/06 18:29:33 rh Exp $
+$NetBSD: distinfo,v 1.5 2001/10/31 01:44:36 minoura Exp $
SHA1 (gnome-applets-1.4.0.4.tar.bz2) = 56aecb06aedb1997f4d4e8fc14f273b6618a2024
Size (gnome-applets-1.4.0.4.tar.bz2) = 5141861 bytes
@@ -7,3 +7,4 @@ SHA1 (patch-ac) = 6ac5186e16ebc9064e3afd14dcc2ec9d9a035dc0
SHA1 (patch-af) = 6c19460c11ab68ca3a0303fa3427984a6422b124
SHA1 (patch-ag) = 3ed5b11668fd844486784ae4ff9c1738ed59595d
SHA1 (patch-ah) = f078afbb7ba990dc82476af9a45b587313ea9108
+SHA1 (patch-ak) = 6d58ecdf9eee5638b327e5b4309842feee052ae7
diff --git a/x11/gnome-applets/patches/patch-ak b/x11/gnome-applets/patches/patch-ak
new file mode 100644
index 00000000000..a4705508390
--- /dev/null
+++ b/x11/gnome-applets/patches/patch-ak
@@ -0,0 +1,14 @@
+$NetBSD: patch-ak,v 1.1 2001/10/31 01:44:37 minoura Exp $
+
+--- battery/read-battery.c.orig Thu Aug 23 18:09:54 2001
++++ battery/read-battery.c Wed Oct 31 00:34:53 2001
+@@ -211,6 +211,9 @@
+ return FALSE;
+ }
+
++#ifdef OAPM_IOC_GETPOWER
++ aip.batteryid = 0; /* APM BIOS, that is, the summary */
++#endif
+ if (ioctl(fd, APM_IOC_GETPOWER, &aip) == -1) {
+ g_error(_("ioctl failed on /dev/apm."));
+ return FALSE;