<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-legacy-support.

</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/5969e533c2f402e464da30cff55b450d2d6fb75f">https://github.com/macports/macports-legacy-support/commit/5969e533c2f402e464da30cff55b450d2d6fb75f</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 5969e53  clock_gettime: fix const issue with cache timebase optimization - Rounding logic updates variable 'tdiff' if necessary, so it can't be a const - See: https://github.com/macports/macports-legacy-support/pull/52
</span>5969e53 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 5969e533c2f402e464da30cff55b450d2d6fb75f
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Mon Apr 24 17:41:52 2023 -0400

<span style='display:block; white-space:pre;color:#404040;'>    clock_gettime: fix const issue with cache timebase optimization
</span><span style='display:block; white-space:pre;color:#404040;'>    - Rounding logic updates variable 'tdiff' if necessary, so it can't be a const
</span><span style='display:block; white-space:pre;color:#404040;'>    - See: https://github.com/macports/macports-legacy-support/pull/52
</span>---
 src/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/time.c b/src/time.c
</span><span style='display:block; white-space:pre;color:#808080;'>index c1b8036..6c24e20 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/time.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/time.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,7 +45,7 @@ int clock_gettime( clockid_t clk_id, struct timespec *ts )
</span>       if (timebase.numer == 0 || timebase.denom == 0) {
         mach_timebase_info(&timebase);
       }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-      const uint64_t tdiff = t * timebase.numer / timebase.denom;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+      uint64_t tdiff = t * timebase.numer / timebase.denom;
</span>       if ( CLOCK_MONOTONIC == clk_id ) {
         tdiff = THOUSAND * ( tdiff / THOUSAND );
       }
</pre><pre style='margin:0'>

</pre>