<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/25e8e1c7776115d4b74a39281fc846d7c0431489">https://github.com/macports/macports-legacy-support/commit/25e8e1c7776115d4b74a39281fc846d7c0431489</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 25e8e1c7776115d4b74a39281fc846d7c0431489
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Fri Jul 19 20:48:43 2024 -0700
<span style='display:block; white-space:pre;color:#404040;'> test_fstatat64: Fix warning.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes declaration visibility warning for "struct stat64", on 10.4
</span><span style='display:block; white-space:pre;color:#404040;'> where this whole test is invalid, anyway.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also removes unused FEEDBACK macro.
</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;'> Warning is now gone on 10.4.
</span>---
test/test_fstatat64.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/test/test_fstatat64.c b/test/test_fstatat64.c
</span><span style='display:block; white-space:pre;color:#808080;'>index b7c96d1..b0b5558 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/test/test_fstatat64.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/test/test_fstatat64.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,8 +24,6 @@
</span> #include <errno.h>
#include <fcntl.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#define FEEDBACK 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> /*
* For newer macOS releases - where this syscall is available - it's declared
* in header 'sys/sysproto.h', within 'Kernel.framework'.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,6 +31,7 @@
</span> * To avoid depending on that, declare it ourselves. (Remember that C/C++
* allows redundant function declarations, as long as the signatures match.)
*/
<span style='display:block; white-space:pre;background:#e0ffe0;'>+struct stat64; /* Avoid warning on 10.4 (where this doesn't work, anyway) */
</span> int fstatat64(int dirfd, const char *pathname, struct stat64 *buf, int flags);
int main (int argc, char **argv) {
</pre><pre style='margin:0'>
</pre>