397caed3ce
it's just not needed. - regen patches while here from Mikolaj
27 lines
789 B
Plaintext
27 lines
789 B
Plaintext
$OpenBSD: patch-battstat_power-management_c,v 1.3 2007/05/17 14:12:20 jasper Exp $
|
|
--- battstat/power-management.c.orig Sat Mar 10 08:03:26 2007
|
|
+++ battstat/power-management.c Thu May 17 16:06:23 2007
|
|
@@ -28,6 +28,7 @@
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#ifdef HAVE_SYS_SYSCTL_H
|
|
+#include <sys/param.h>
|
|
#include <sys/sysctl.h>
|
|
#endif
|
|
|
|
@@ -246,12 +247,13 @@ apm_readinfo (BatteryStatus *status)
|
|
/* Code for OpenBSD by Joe Ammond <jra@twinight.org>. Using the same
|
|
procedure as for FreeBSD.
|
|
*/
|
|
- struct apm_info apminfo;
|
|
int fd;
|
|
|
|
#if defined(__NetBSD__)
|
|
+ struct apm_info apminfo;
|
|
if (DEBUG) g_print("apm_readinfo() (NetBSD)\n");
|
|
#else /* __OpenBSD__ */
|
|
+ struct apm_power_info apminfo;
|
|
if (DEBUG) g_print("apm_readinfo() (OpenBSD)\n");
|
|
#endif
|
|
|