forked from enlightenment/enlightenment
Patch submitted by Devon O\'Dell <devon.odell@gmail.com>. A fix for FreeBSD/AMD64 which lacks APM.
SVN revision: 18392
This commit is contained in:
parent
9bcb821d09
commit
4cac22613e
|
@ -1468,6 +1468,7 @@ _battery_bsd_acpi_check(Battery *ef)
|
|||
static Status *
|
||||
_battery_bsd_apm_check(Battery *ef)
|
||||
{
|
||||
#ifdef __i386__
|
||||
int ac_stat, bat_stat, bat_val, time_val;
|
||||
char buf[4096];
|
||||
int hours, minutes;
|
||||
|
@ -1556,6 +1557,9 @@ _battery_bsd_apm_check(Battery *ef)
|
|||
}
|
||||
|
||||
return stat;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue