diff options
| author | Dirk Meyer <dinoex@FreeBSD.org> | 2011-10-19 18:53:33 +0000 |
|---|---|---|
| committer | Dirk Meyer <dinoex@FreeBSD.org> | 2011-10-19 18:53:33 +0000 |
| commit | 87368eeb509038ee9061f9543a7f377ef1854df4 (patch) | |
| tree | 5e5660fdfae4d84a113d2ce3917924334a5b3278 /sysutils/batmon/files/patch-BatteryModel.m | |
| parent | This time remember to bump PORTREVISION (diff) | |
- fix build for FreeBSD-8-STABLE and FreeBSD-9
Diffstat (limited to 'sysutils/batmon/files/patch-BatteryModel.m')
| -rw-r--r-- | sysutils/batmon/files/patch-BatteryModel.m | 14 |
1 files changed, 14 insertions, 0 deletions
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"; |
