SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
28
sysutils/wmapm/patches/patch-wmapm_h
Normal file
28
sysutils/wmapm/patches/patch-wmapm_h
Normal file
|
@ -0,0 +1,28 @@
|
|||
--- 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
|
Loading…
Add table
Add a link
Reference in a new issue