jmr at macports.org
Tue Dec 14 03:10:21 PST 2010
On 2010-12-14 08:14 , Jeremy Huddleston wrote:
> This will fail for __DARWIN_ONLY_64_BIT_INO_T configurations.
> I suggest that you don't set _DARWIN_NO_64_BIT_INODE in CPPFLAGS in the Makefile and instead do this first (not tested, but you should be able to get the point):
> #include <sys/cdefs.h>
> #if defined(_DARWIN_FEATURE_64_BIT_INODE) && !defined(_DARWIN_FEATURE_ONLY_64_BIT_INODE)
> // The architecture we're building for has multiple versions of stat.
> // We need to undo sys/cdefs.h changes for _DARWIN_FEATURE_64_BIT_INODE
> #define __DARWIN_64_BIT_INO_T 0
> #define __DARWIN_SUF_64_BIT_INO_T ""
> #undef _DARWIN_FEATURE_64_BIT_INODE
> then put all the stat64 and lstat64 bits inside:
> #ifndef _DARWIN_FEATURE_ONLY_64_BIT_INODE
More information about the macports-dev