Patch submitted by Devon O\'Dell <devon.odell@gmail.com>. A fix for FreeBSD/AMD64...
authortechnikolor <technikolor>
Wed, 9 Nov 2005 07:56:20 +0000 (07:56 +0000)
committertechnikolor <technikolor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 9 Nov 2005 07:56:20 +0000 (07:56 +0000)
SVN revision: 18392

src/modules/battery/e_mod_main.c

index 73969d1..bfc6563 100644 (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