24 lines
630 B
Text
24 lines
630 B
Text
$NetBSD: patch-ad,v 1.3 2007/09/20 00:00:03 wiz Exp $
|
|
|
|
--- battstat/power-management.c.orig 2005-08-30 16:32:42.000000000 +0200
|
|
+++ battstat/power-management.c
|
|
@@ -23,6 +23,7 @@
|
|
#include <config.h>
|
|
#endif
|
|
|
|
+#include <sys/param.h>
|
|
#include <sys/file.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/types.h>
|
|
@@ -244,7 +245,11 @@ apm_readinfo (BatteryStatus *status)
|
|
/* Code for OpenBSD by Joe Ammond <jra@twinight.org>. Using the same
|
|
procedure as for FreeBSD.
|
|
*/
|
|
+#if defined(__NetBSD__)
|
|
+ struct apm_power_info apminfo;
|
|
+#else /* __OpenBSD__ */
|
|
struct apm_info apminfo;
|
|
+#endif
|
|
int fd;
|
|
|
|
#if defined(__NetBSD__)
|