From 87368eeb509038ee9061f9543a7f377ef1854df4 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Wed, 19 Oct 2011 18:53:33 +0000 Subject: - fix build for FreeBSD-8-STABLE and FreeBSD-9 --- sysutils/batmon/files/patch-BatteryModel.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sysutils/batmon/files/patch-BatteryModel.m (limited to 'sysutils/batmon/files/patch-BatteryModel.m') diff --git a/sysutils/batmon/files/patch-BatteryModel.m b/sysutils/batmon/files/patch-BatteryModel.m new file mode 100644 index 000000000000..ac15b2a3fed2 --- /dev/null +++ b/sysutils/batmon/files/patch-BatteryModel.m @@ -0,0 +1,14 @@ +--- BatteryModel.m.orig 2011-07-15 11:05:22.000000000 +0200 ++++ BatteryModel.m 2011-10-19 20:45:35.000000000 +0200 +@@ -246,7 +246,11 @@ + if( battio.bst.state & ACPI_BATT_STAT_CRITICAL ) + batteryType = @"CRITICAL "; // could be complementary! + ++#ifdef ACPI_BATT_STAT_BST_MASK ++ if( battio.bst.state & ACPI_BATT_STAT_BST_MASK ) ++#else + if( battio.bst.state & ACPI_BATT_STAT_MAX ) ++#endif + status = @"Charged"; + if( battio.bst.state & ACPI_BATT_STAT_CHARGING ) + status = @"Charging"; -- cgit v1.2.3