<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/26f3cf75aa6a3d201beb5538dcc7389a801c694f">https://github.com/macports/macports-legacy-support/commit/26f3cf75aa6a3d201beb5538dcc7389a801c694f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 26f3cf75aa6a3d201beb5538dcc7389a801c694f
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Wed May 7 19:13:56 2025 -0700
<span style='display:block; white-space:pre;color:#404040;'> dirent.h: Fix build with C89/C90.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The 'inline' keyword isn't supported prior to C99, so '__inline__'
</span><span style='display:block; white-space:pre;color:#404040;'> must be used for full compatibility.
</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/72428
</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;'> Now compiles with -std=c89 or -std-c90.
</span><span style='display:block; white-space:pre;color:#404040;'> All tests build and pass, including the new allheaders tests.
</span>---
include/dirent.h | 8 ++++----
1 file changed, 4 insertions(+), 4 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 02d8a47..caf303f 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;'>@@ -100,7 +100,7 @@ __MP__END_DECLS
</span>
__MP__BEGIN_DECLS
<span style='display:block; white-space:pre;background:#ffe0e0;'>-static inline int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+static __inline__ int
</span> __mpls_alphasort(const struct dirent **d1, const struct dirent **d2)
{
/*
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -110,7 +110,7 @@ __mpls_alphasort(const struct dirent **d1, const struct dirent **d2)
</span> return alphasort((const void *) d1, (const void *) d2);
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-static inline int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+static __inline__ int
</span> __mpls_scandir(const char *dirnam, struct dirent ***namelist,
int (*selector)(const struct dirent *),
int (*compar)(const struct dirent **, const struct dirent **))
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -133,13 +133,13 @@ __MP__END_DECLS
</span>
/* Dummy wrapper functions without unnecessary casts */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-static inline int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+static __inline__ int
</span> __mpls_alphasort(const struct dirent **d1, const struct dirent **d2)
{
return alphasort(d1, d2);
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-static inline int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+static __inline__ int
</span> __mpls_scandir(const char *dirnam, struct dirent ***namelist,
int (*selector)(const struct dirent *),
int (*compar)(const struct dirent **, const struct dirent **))
</pre><pre style='margin:0'>
</pre>