diff options
author | wiz <wiz@pkgsrc.org> | 2001-11-26 20:02:35 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-11-26 20:02:35 +0000 |
commit | 0a606058b480720cbbd8fec19e84f3457f9ea2f3 (patch) | |
tree | ab38577578805936de20cf459a4c10df8057ba83 /sysutils/xbatt/patches/patch-ab | |
parent | 0a389920638a4a51b628cb00b82477c67131be91 (diff) | |
download | pkgsrc-0a606058b480720cbbd8fec19e84f3457f9ea2f3.tar.gz |
Add 'new' NetBSD-apm support, based on patch from Love in pkg/14553.
Make PKGNAME dewey-compatible, and bump it to 1.3.1nb1.
Diffstat (limited to 'sysutils/xbatt/patches/patch-ab')
-rw-r--r-- | sysutils/xbatt/patches/patch-ab | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sysutils/xbatt/patches/patch-ab b/sysutils/xbatt/patches/patch-ab index 650702df5ce..e20831e5729 100644 --- a/sysutils/xbatt/patches/patch-ab +++ b/sysutils/xbatt/patches/patch-ab @@ -1,7 +1,7 @@ -$NetBSD: patch-ab,v 1.1 1999/12/10 09:13:59 itohy Exp $ +$NetBSD: patch-ab,v 1.2 2001/11/26 20:02:36 wiz Exp $ ---- xbatt.c.orig Fri Sep 18 21:03:05 1998 -+++ xbatt.c Fri Dec 10 07:48:25 1999 +--- xbatt.c.orig Fri Sep 18 14:03:05 1998 ++++ xbatt.c @@ -219,6 +219,7 @@ String fallback_resouces[] = { "*width: 39", @@ -10,3 +10,11 @@ $NetBSD: patch-ab,v 1.1 1999/12/10 09:13:59 itohy Exp $ }; main( +@@ -494,6 +495,7 @@ + + #ifdef __NetBSD__ + struct apm_power_info info; ++ memset(&info, 0, sizeof(info)); + if( ioctl(apmfd, APM_IOC_GETPOWER, &info) == -1 ) { + fprintf(stderr, "xbatt: ioctl APM_IOC_GETPOWER failed\n"); + exit(1); |