From 4cac22613eb395e4fe87539dac58e588766f9053 Mon Sep 17 00:00:00 2001 From: technikolor Date: Wed, 9 Nov 2005 07:56:20 +0000 Subject: [PATCH] Patch submitted by Devon O\'Dell . A fix for FreeBSD/AMD64 which lacks APM. SVN revision: 18392 --- src/modules/battery/e_mod_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/battery/e_mod_main.c b/src/modules/battery/e_mod_main.c index 73969d1..bfc6563 100644 --- a/src/modules/battery/e_mod_main.c +++ b/src/modules/battery/e_mod_main.c @@ -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 -- 2.7.4