<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/a7999459e6707f4d8ac425cb3a872aa5ed82ca4b">https://github.com/macports/macports-legacy-support/commit/a7999459e6707f4d8ac425cb3a872aa5ed82ca4b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a7999459e6707f4d8ac425cb3a872aa5ed82ca4b
</span>Author: Mihai Moldovan <ionic@ionic.de>
AuthorDate: Tue Oct 8 01:52:47 2019 +0200
<span style='display:block; white-space:pre;color:#404040;'> {include/dirent.h,src/fdopendir.c}: use __DARWIN_ALIAS_I macro to generate fdopendir() variations.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> It's important to make best_fchdir() static so that the symbol is only
</span><span style='display:block; white-space:pre;color:#404040;'> included and usable within its own object file.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Otherwise it'll be included multiple times when merging variations,
</span><span style='display:block; white-space:pre;color:#404040;'> leading to linker errors.
</span>---
include/dirent.h | 2 +-
src/fdopendir.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/dirent.h b/include/dirent.h
</span><span style='display:block; white-space:pre;color:#808080;'>index f964ac2..db42e36 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/dirent.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/dirent.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,7 +27,7 @@
</span> /* fdopendir */
#if __MP_LEGACY_SUPPORT_FDOPENDIR__
__MP__BEGIN_DECLS
<span style='display:block; white-space:pre;background:#ffe0e0;'>-extern DIR *fdopendir(int fd);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extern DIR *fdopendir(int fd) __DARWIN_ALIAS_I(fdopendir);
</span> __MP__END_DECLS
#endif
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/fdopendir.c b/src/fdopendir.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 7accea3..bea3ef5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/fdopendir.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/fdopendir.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,7 +31,7 @@
</span> # define SYS___pthread_fchdir 349
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-int best_fchdir(int dirfd)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+static int best_fchdir(int dirfd)
</span> {
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
return syscall(SYS___pthread_fchdir, dirfd);
</pre><pre style='margin:0'>
</pre>