<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/0488a6cd87a00b9354321fc0d407eca75d3e8426">https://github.com/macports/macports-legacy-support/commit/0488a6cd87a00b9354321fc0d407eca75d3e8426</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0488a6cd87a00b9354321fc0d407eca75d3e8426
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Thu Nov 28 18:20:01 2024 -0800

<span style='display:block; white-space:pre;color:#404040;'>    Update ino64 fix for 32-bit 10.4.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    This changes the inconsistency fix to make it easier to make use of
</span><span style='display:block; white-space:pre;color:#404040;'>    the partial 64-bit-inode suport on 10.4.  It has the effect of making
</span><span style='display:block; white-space:pre;color:#404040;'>    the 32-bit behavior consistent with the 64-bit behavior.
</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;'>    Builds and passes tests on all platforms.
</span>---
 include/sys/cdefs.h | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
</span><span style='display:block; white-space:pre;color:#808080;'>index e6ce488..7f3c8fa 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/sys/cdefs.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/sys/cdefs.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -153,14 +153,22 @@
</span>  * set __DARWIN_64_BIT_INO_T, even on 10.4.  But 32-bit 10.4 builds default
  * to __DARWIN_UNIX03=0, which clears __DARWIN_SUF_64_BIT_INO_T without
  * disabling __DARWIN_64_BIT_INO_T, leading to a mismatch in expected
<span style='display:block; white-space:pre;background:#ffe0e0;'>- * struct stat formats.  To fix this, we disable __DARWIN_64_BIT_INO_T
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- * in this particular case.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * struct stat formats.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Originally, we fixed this by disabling __DARWIN_64_BIT_INO_T in this
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * particular case, since there was no support for 64-bit inodes on 10.4,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * anyway.  But now that limited such support exists, we leave that flag
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * alone and reenable __DARWIN_SUF_64_BIT_INO_T instead.  This allows use
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * of the available 64-bit-inode functions without being forced to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * enable __DARWIN_UNIX03, which causes many functions to expect nonexistent
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * $UNIX2003 variants.
</span>  *
  * This does not affect 64-bit builds, 10.5+ builds, or builds that
  * set any of the flags enabling Unix compliance.
  */
 #if !__DARWIN_UNIX03 && defined(__DARWIN_64_BIT_INO_T) && __DARWIN_64_BIT_INO_T
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#undef __DARWIN_64_BIT_INO_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#undef __DARWIN_SUF_64_BIT_INO_T
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define __DARWIN_SUF_64_BIT_INO_T "$INODE64"
</span> #endif
 
 #endif /* _MACPORTS_SYS_CDEFS_H_ */
</pre><pre style='margin:0'>

</pre>