summaryrefslogtreecommitdiff
path: root/package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-01-29 08:07:42 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-01-29 08:07:42 +0100
commit50dc4372e21202d2e285bd295ec18c759b66c4d9 (patch)
treed1567429c120802fe5adc11ef988544aec7a100d /package/xbmc/patches/patch-xbmc_powermanagement_PowerManager_cpp
parent97004f38266b1106bb1823cbbcbd4e63d11210c9 (diff)
fix xbmc compile under Darwin
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();