From: technikolor Date: Wed, 9 Nov 2005 07:56:20 +0000 (+0000) Subject: Patch submitted by Devon O\'Dell . A fix for FreeBSD/AMD64... X-Git-Tag: submit/efl/20131021.015651~14512 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cac22613eb395e4fe87539dac58e588766f9053;p=platform%2Fupstream%2Fenlightenment.git Patch submitted by Devon O\'Dell . A fix for FreeBSD/AMD64 which lacks APM. SVN revision: 18392 --- 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