blob: 8395bf7878cc04e21b996a083cca2fc07d6d64a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ad,v 1.4 2005/03/22 16:19:42 jmmv Exp $
--- battstat/power-management.c.orig 2005-03-01 10:34:20.000000000 +0100
+++ battstat/power-management.c
@@ -25,6 +25,7 @@
#include <stdio.h>
+#include <sys/param.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -129,7 +130,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__)
|