Hi Haroldo,
> ________________________________________
> From: Haroldo Gambini Santos [[email protected]]
> Sent: Saturday, January 17, 2015 5:16 PM
> To: Torrance, Douglas; [email protected]
> Subject: Re: [PATCH 0/3] wmbattery updates
>
> I really miss this dock app (it seems that it does not compiles in newer
> kernels since APM is no longer supported), thanks for working with it !
No problem!
> I still cannot build it in OpenSuse 13.2, do you have any tip ?
>
> wmbattery.c:582:15: error: request for member ‘battery_status’ in
> something not a structure or union
> (cur_info.battery_status == BATTERY_STATUS_LOW)) {
> ^
> wmbattery.c:585:19: error: request for member ‘battery_status’ in
> something not a structure or union
> else if (cur_info.battery_status == BATTERY_STATUS_CRITICAL) {
Interesting. Does your system have an apm.h different than the one from libapm?
Then it would skip the definition of apm_info and errors like this would occur.
This is just a guess, but could you try the attached patch and see if it helps?
Thanks for the report!
Doug
diff --git a/apm.h b/apm.h
index fc2428e..32b6d97 100644
--- a/apm.h
+++ b/apm.h
@@ -37,7 +37,7 @@
#define BATTERY_TIME_UNKNOWN (-1)
#endif /* AC_LINE_STATUS_ON */
-#if !defined(HAVE_APM_H)
+#if !defined(HAVE_LIBAPM)
typedef struct {
const char driver_version[10];
int apm_version_major;