summaryrefslogtreecommitdiff
path: root/package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp
diff options
context:
space:
mode:
Diffstat (limited to 'package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp')
-rw-r--r--package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp b/package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp
new file mode 100644
index 000000000..0959e9c4e
--- /dev/null
+++ b/package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp
@@ -0,0 +1,23 @@
+--- xbmc-12.3-Frodo.orig/xbmc/powermanagement/PowerManager.cpp 2013-12-12 22:47:49.000000000 +0100
++++ xbmc-12.3-Frodo/xbmc/powermanagement/PowerManager.cpp 2014-01-29 07:59:01.000000000 +0100
+@@ -46,6 +46,9 @@
+ #include "linux/ConsoleDeviceKitPowerSyscall.h"
+ #include "linux/SystemdUPowerSyscall.h"
+ #include "linux/UPowerSyscall.h"
++#ifdef HAS_SIMPLEPM
++#include "linux/LinuxPowerSyscall.h"
++#endif
+ #ifdef HAS_HAL
+ #include "linux/HALPowerSyscall.h"
+ #endif
+@@ -83,6 +86,10 @@ void CPowerManager::Initialize()
+ m_instance = new CSystemdUPowerSyscall();
+ else if (CUPowerSyscall::HasUPower())
+ m_instance = new CUPowerSyscall();
++#ifdef HAS_SIMPLEPM
++ else
++ m_instance = new CLinuxPowerSyscall();
++#endif
+ #ifdef HAS_HAL
+ else
+ m_instance = new CHALPowerSyscall();