<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a37fa19148e1bef636d038ea0f51cd6c0b9579d4">https://github.com/macports/macports-ports/commit/a37fa19148e1bef636d038ea0f51cd6c0b9579d4</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 a37fa19148e mozjs91: fall back to generic uptime logic pre-10.12
</span>a37fa19148e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a37fa19148e1bef636d038ea0f51cd6c0b9579d4
</span>Author: Evan Miller <emmiller@gmail.com>
AuthorDate: Sat Mar 19 13:23:53 2022 -0400
<span style='display:block; white-space:pre;color:#404040;'> mozjs91: fall back to generic uptime logic pre-10.12
</span>---
lang/mozjs91/Portfile | 3 ++-
.../mozjs91/files/patch-mozglue-clock_gettime.diff | 26 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/mozjs91/Portfile b/lang/mozjs91/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3efa62f8f57..5a67203d739 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/mozjs91/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/mozjs91/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,7 +64,8 @@ if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
</span> configure.env-append AR=${prefix}/bin/ar
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-skip-sdk-check.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-skip-sdk-check.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-mozglue-clock_gettime.diff
</span>
# Use absolute path for install_name
post-patch {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/mozjs91/files/patch-mozglue-clock_gettime.diff b/lang/mozjs91/files/patch-mozglue-clock_gettime.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..08800524129
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/mozjs91/files/patch-mozglue-clock_gettime.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: use of undeclared identifier 'CLOCK_UPTIME_RAW'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mozglue/misc/AwakeTimeStamp.cpp.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mozglue/misc/AwakeTimeStamp.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -58,6 +58,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <sys/time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <mach/mach_time.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;'>++#if defined(__APPLE__) && defined(__MACH__) && defined(CLOCK_UPTIME_RAW)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AwakeTimeStamp AwakeTimeStamp::NowLoRes() {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return AwakeTimeStamp(clock_gettime_nsec_np(CLOCK_UPTIME_RAW) / kNSperUS);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mozglue/misc/Uptime.cpp.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mozglue/misc/Uptime.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -32,7 +32,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <sys/time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <mach/mach_time.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;'>++#if defined(__APPLE__) && defined(__MACH__) && defined(CLOCK_UPTIME_RAW) && defined(CLOCK_MONOTONIC_RAW)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const uint64_t kNSperMS = 1000000;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Maybe<uint64_t> NowExcludingSuspendMs() {
</span></pre><pre style='margin:0'>
</pre>