From b3b5d37813465246bfdfd06d09c32acfa78cc4b1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Jan 2009 16:27:42 +0000 Subject: [PATCH] Disable battery management on BSD 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 --- hw/battery_mgmt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/battery_mgmt.h b/hw/battery_mgmt.h index dd60160ec..4a4ac8e79 100644 --- a/hw/battery_mgmt.h +++ b/hw/battery_mgmt.h @@ -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 }; -- 2.39.5