<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/23f2aa398feac628e5762b604368ba958d705431">https://github.com/macports/macports-base/commit/23f2aa398feac628e5762b604368ba958d705431</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 23f2aa39 check runtime availability of _dyld_shared_cache_contains_path
</span>23f2aa39 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 23f2aa398feac628e5762b604368ba958d705431
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Dec 31 11:41:48 2020 +1100
<span style='display:block; white-space:pre;color:#404040;'> check runtime availability of _dyld_shared_cache_contains_path
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/61540
</span>---
src/machista1.0/libmachista.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/machista1.0/libmachista.c b/src/machista1.0/libmachista.c
</span><span style='display:block; white-space:pre;color:#808080;'>index a4753e7c..33512dcb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/machista1.0/libmachista.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/machista1.0/libmachista.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -467,8 +467,12 @@ int macho_parse_file(macho_handle_t *handle, const char *filepath, const macho_t
</span> /* Open input file */
if ((fd = open(filepath, O_RDONLY)) < 0) {
#ifdef HAVE__DYLD_SHARED_CACHE_CONTAINS_PATH
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if (_dyld_shared_cache_contains_path(filepath)) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return MACHO_ECACHE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* All systems that have this function in the SDK should also have
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ __builtin_available, so not bothering to check for it. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (__builtin_available(macos 11.0, ios 14.0, watchos 7.0, tvos 14.0, *)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (_dyld_shared_cache_contains_path(filepath)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return MACHO_ECACHE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
#endif /* HAVE__DYLD_SHARED_CACHE_CONTAINS_PATH */
return MACHO_EFILE;
</pre><pre style='margin:0'>
</pre>