diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-03-28 23:35:31 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-03-28 23:35:31 +0000 |
commit | 5470a075ae2d397bc76901eac95732f987ef93a2 (patch) | |
tree | 6dc3fbdd44cfda15522541dbca53afb4772b18d8 /emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp | |
parent | - Stage support (diff) |
- Update to 4.3.10.
- Build with base C/C++ compiler, i.e., clang on 10.0+, as much as we can
to remove GCC run-time dependency and to reduce possible C++ ABI conflicts.
Diffstat (limited to 'emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp')
-rw-r--r-- | emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp b/emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp new file mode 100644 index 000000000000..87efc5ea76aa --- /dev/null +++ b/emulators/virtualbox-ose/files/patch-src-VBox-Devices-PC-DrvACPI.cpp @@ -0,0 +1,29 @@ +--- src/VBox/Devices/PC/DrvACPI.cpp.orig 2013-11-29 14:23:31.000000000 -0500 ++++ src/VBox/Devices/PC/DrvACPI.cpp 2013-12-13 17:36:50.000000000 -0500 +@@ -204,7 +204,7 @@ + int fAcLine = 0; + size_t cbParameter = sizeof(fAcLine); + +- int rc = sysctlbyname("hw.acpi.acline", &fAcLine, &cbParameter, NULL, NULL); ++ int rc = sysctlbyname("hw.acpi.acline", &fAcLine, &cbParameter, NULL, 0); + + if (!rc) + { +@@ -463,7 +463,7 @@ + int fBatteryState = 0; + size_t cbParameter = sizeof(fBatteryState); + +- rc = sysctlbyname("hw.acpi.battery.state", &fBatteryState, &cbParameter, NULL, NULL); ++ rc = sysctlbyname("hw.acpi.battery.state", &fBatteryState, &cbParameter, NULL, 0); + if (!rc) + { + if ((fBatteryState & ACPI_BATT_STAT_NOT_PRESENT) == ACPI_BATT_STAT_NOT_PRESENT) +@@ -485,7 +485,7 @@ + /* Get battery level. */ + int curCapacity = 0; + cbParameter = sizeof(curCapacity); +- rc = sysctlbyname("hw.acpi.battery.life", &curCapacity, &cbParameter, NULL, NULL); ++ rc = sysctlbyname("hw.acpi.battery.life", &curCapacity, &cbParameter, NULL, 0); + if (!rc && curCapacity >= 0) + *penmRemainingCapacity = (PDMACPIBATCAPACITY)curCapacity; + |