$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 #include #ifdef HAVE_SYS_SYSCTL_H +#include #include #endif @@ -246,12 +247,13 @@ apm_readinfo (BatteryStatus *status) /* Code for OpenBSD by Joe Ammond . 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