$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 #endif +#include #include #include #include @@ -244,7 +245,11 @@ apm_readinfo (BatteryStatus *status) /* Code for OpenBSD by Joe Ammond . 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__)