]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commitdiff
Disable battery management on BSD
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 14 Jan 2009 16:27:42 +0000 (16:27 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 14 Jan 2009 16:27:42 +0000 (16:27 +0000)
BSD lacks ioperm, inb, outb, so the battery management support does
not build on BSD.  We therefore disable it there.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
hw/battery_mgmt.h

index dd60160ec06869f2e00bb33843b98aac1cc53c85..4a4ac8e795d5fd309e02cfe95c07dc224042b791 100644 (file)
@@ -25,6 +25,9 @@
 #ifdef CONFIG_STUBDOM
 #define CONFIG_NO_BATTERY_MGMT
 #endif
+#ifdef _BSD /* There's no ioperm(), outb(), inb() */
+#define CONFIG_NO_BATTERY_MGMT
+#endif
 
 enum POWER_MGMT_MODE { PM_MODE_NONE = 0, PM_MODE_PT, PM_MODE_NON_PT };
 enum BATTERY_INFO_TYPE { BATT_NONE, BIF, BST };