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:
technikolor 2005-11-09 07:56:20 +00:00 committed by technikolor
parent 9bcb821d09
commit 4cac22613e
1 changed files with 4 additions and 0 deletions

View File

@ -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