<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/ed9b89e1dbb9d1f860f681e49604a9fb1f24b1dc">https://github.com/macports/macports-legacy-support/commit/ed9b89e1dbb9d1f860f681e49604a9fb1f24b1dc</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 ed9b89e test_dirfuncs_compat: Fix warning
</span>ed9b89e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ed9b89e1dbb9d1f860f681e49604a9fb1f24b1dc
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Sat Apr 20 21:14:15 2024 -0700
<span style='display:block; white-space:pre;color:#404040;'> test_dirfuncs_compat: Fix warning
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Since dirfd() may be defined as a macro, it needs to be undefined
</span><span style='display:block; white-space:pre;color:#404040;'> before defining it, to avoid a warning.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> Tested on 10.4-10.5 ppc, 10.4-10.6 i386, 10.5-10.6 ppc (i386 Rosetta),
</span><span style='display:block; white-space:pre;color:#404040;'> 10.5-12.x x86_64, 11.x-14.x arm64.
</span><span style='display:block; white-space:pre;color:#404040;'> Redfinition warning is now gone.
</span>---
test/test_dirfuncs_compat.c | 1 +
1 file changed, 1 insertion(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/test/test_dirfuncs_compat.c b/test/test_dirfuncs_compat.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 6148d41..689b6cc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/test/test_dirfuncs_compat.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/test/test_dirfuncs_compat.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,6 +35,7 @@
</span> #define seekdir __mpls_seekdir
#define rewinddir __mpls_rewinddir
#define closedir __mpls_closedir
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#undef dirfd
</span> #define dirfd __mpls_dirfd
#include "test_fdopendir.c"
</pre><pre style='margin:0'>
</pre>