openbsd-ports/x11/gnome/applets2/patches/patch-battstat_power-management_c

27 lines
789 B
Plaintext
Raw Normal View History

$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 @@
2005-05-25 23:39:30 -04:00
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_SYSCTL_H
2005-05-25 23:39:30 -04:00
+#include <sys/param.h>
#include <sys/sysctl.h>
#endif
2005-05-25 23:39:30 -04:00
@@ -246,12 +247,13 @@ apm_readinfo (BatteryStatus *status)
2005-05-25 23:39:30 -04:00
/* 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