<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/680902db859b0ba1ee46fb024ec4be30d169518b">https://github.com/macports/macports-legacy-support/commit/680902db859b0ba1ee46fb024ec4be30d169518b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 680902db859b0ba1ee46fb024ec4be30d169518b
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Sun Dec 1 19:54:34 2024 -0800

<span style='display:block; white-space:pre;color:#404040;'>    test_scandir: Update to test new features.
</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;'>    Fails without corresponding update & passes with.
</span>---
 xtest/test_scandir.c | 8 ++++++++
 1 file changed, 8 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/xtest/test_scandir.c b/xtest/test_scandir.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 7197fd5..7524889 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/xtest/test_scandir.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/xtest/test_scandir.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,6 +37,12 @@
</span> #include <libgen.h>
 #include <stddef.h>
 #include <stdio.h>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Check the new public definition. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _MACPORTS_LEGACY_OLD_SCANDIR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#warning _MACPORTS_LEGACY_OLD_SCANDIR is undefined
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#elif _MACPORTS_LEGACY_OLD_SCANDIR != (__MPLS_SDK_MAJOR < 1080)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#warning _MACPORTS_LEGACY_OLD_SCANDIR is incorrect
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif
</span> 
 /* Determine whether the old or new type of the 'compar' func is in effect. */
 #if !_MACPORTS_LEGACY_COMPATIBLE_SCANDIR && __MPLS_SDK_MAJOR < 1080
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,6 +81,8 @@ test_scandir(void)
</span>   struct dirent **names;
   if (scandir(".", &names, NULL, alphasort)) return -1;
   if (scandir(".", &names, NULL, mysort)) return -1;
<span style='display:block; white-space:pre;background:#e0ffe0;'>+  /* Also check our functions, which are now unconditionally available. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+  if (__mpls_scandir(".", &names, NULL, __mpls_alphasort)) return -1;
</span>   return 0;
 }
 
</pre><pre style='margin:0'>

</pre>