<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/83173124ea95936a6eeb580f28c5aab2a5fa7a75">https://github.com/macports/macports-ports/commit/83173124ea95936a6eeb580f28c5aab2a5fa7a75</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 83173124ea9 QMPlay2: fix for 10.5
</span>83173124ea9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 83173124ea95936a6eeb580f28c5aab2a5fa7a75
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Fri May 10 15:08:56 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> QMPlay2: fix for 10.5
</span>---
.../files/0003-ScreenSaver-fix-IOKit-defines.patch | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/QMPlay2/files/0003-ScreenSaver-fix-IOKit-defines.patch b/multimedia/QMPlay2/files/0003-ScreenSaver-fix-IOKit-defines.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index a830e861543..7b7b225b9c0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/QMPlay2/files/0003-ScreenSaver-fix-IOKit-defines.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/QMPlay2/files/0003-ScreenSaver-fix-IOKit-defines.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,14 +7,30 @@ diff --git src/gui/macOS/ScreenSaver.cpp src/gui/macOS/ScreenSaver.cpp
</span> index de305ff9..13a22ac2 100644
--- src/gui/macOS/ScreenSaver.cpp
+++ src/gui/macOS/ScreenSaver.cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -32,8 +32,8 @@ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,6 +20,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <IOKit/pwr_mgt/IOPMLib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ #include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define QMPLAY2_MEDIA_PLAYBACK CFSTR("QMPlay2 media playback")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class ScreenSaverPriv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -32,8 +36,13 @@
</span>
inline void inhibit()
{
- m_okDisp = (IOPMAssertionCreateWithName(kIOPMAssertPreventUserIdleDisplaySleep, kIOPMAssertionLevelOn, QMPLAY2_MEDIA_PLAYBACK, &m_idDisp) == kIOReturnSuccess);
- m_okSys = (IOPMAssertionCreateWithName(kIOPMAssertPreventUserIdleSystemSleep, kIOPMAssertionLevelOn, QMPLAY2_MEDIA_PLAYBACK, &m_idSys) == kIOReturnSuccess);
<span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED < 1060)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ m_okDisp = (IOPMAssertionCreate(kIOPMAssertionTypeNoDisplaySleep, kIOPMAssertionLevelOn, &m_idDisp) == kIOReturnSuccess);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ m_okSys = (IOPMAssertionCreate(kIOPMAssertionTypeNoIdleSleep, kIOPMAssertionLevelOn, &m_idSys) == kIOReturnSuccess);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span> + m_okDisp = (IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep, kIOPMAssertionLevelOn, QMPLAY2_MEDIA_PLAYBACK, &m_idDisp) == kIOReturnSuccess);
+ m_okSys = (IOPMAssertionCreateWithName(kIOPMAssertionTypeNoIdleSleep, kIOPMAssertionLevelOn, QMPLAY2_MEDIA_PLAYBACK, &m_idSys) == kIOReturnSuccess);
<span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span> }
inline void unInhibit()
{
</pre><pre style='margin:0'>
</pre>