patch-xbmc_powermanagement_PowerManager_cpp 789 B

1234567891011121314151617181920212223
  1. --- xbmc-12.3-Frodo.orig/xbmc/powermanagement/PowerManager.cpp 2013-12-12 22:47:49.000000000 +0100
  2. +++ xbmc-12.3-Frodo/xbmc/powermanagement/PowerManager.cpp 2014-01-29 07:59:01.000000000 +0100
  3. @@ -46,6 +46,9 @@
  4. #include "linux/ConsoleDeviceKitPowerSyscall.h"
  5. #include "linux/SystemdUPowerSyscall.h"
  6. #include "linux/UPowerSyscall.h"
  7. +#ifdef HAS_SIMPLEPM
  8. +#include "linux/LinuxPowerSyscall.h"
  9. +#endif
  10. #ifdef HAS_HAL
  11. #include "linux/HALPowerSyscall.h"
  12. #endif
  13. @@ -83,6 +86,10 @@ void CPowerManager::Initialize()
  14. m_instance = new CSystemdUPowerSyscall();
  15. else if (CUPowerSyscall::HasUPower())
  16. m_instance = new CUPowerSyscall();
  17. +#ifdef HAS_SIMPLEPM
  18. + else
  19. + m_instance = new CLinuxPowerSyscall();
  20. +#endif
  21. #ifdef HAS_HAL
  22. else
  23. m_instance = new CHALPowerSyscall();