openbsd-ports/sysutils/wmapm/patches/patch-wmapm_h
naddy 73294c818e Import wmapm 3.1.
Submitted by Peter Stromberg <home@wilfried.net>.

WMAPM is an APM/battery monitor.  It is used to visually display and
interpret details of APM/battery status from the system's BIOS.
2001-01-11 00:13:11 +00:00

30 lines
681 B
Plaintext

$OpenBSD: patch-wmapm_h,v 1.1.1.1 2001/01/11 00:13:12 naddy Exp $
--- wmapm/wmapm.h.orig Tue Jan 11 16:53:43 2000
+++ wmapm/wmapm.h Wed Jan 10 12:35:40 2001
@@ -27,12 +27,10 @@
#define WMAPM_VERSION "3.1"
-#ifdef FreeBSD
+#if defined(FreeBSD) || defined(__OpenBSD__)
# define APMDEV "/dev/apm"
-#else
-# ifdef Linux
-# define APMDEV "/proc/apm"
-# endif
+#elif defined(Linux)
+# define APMDEV "/proc/apm"
#endif
typedef struct my_apm_info {
@@ -45,7 +43,9 @@ typedef struct my_apm_info {
int battery_flags;
int battery_percentage;
int battery_time;
+#ifdef Linux
int using_minutes;
+#endif
} my_apm_info;
#ifdef Linux