From: Sjoerd Simons <sjoerd@spring.luon.net> It seems that klibc uses __sparc64__ to determine if it's compiled in 64 bit mode on sparc, unfortunatly gcc doesn't define __sparc64__ :) It does define __arch64__ though. Signed-off-by: maximilian attems <maks@sternwelten.at> --- klibc-1.2.2.orig/include/sys/vfs.h 2006-02-15 18:32:10.000000000 +0100 +++ klibc-1.2.2/include/sys/vfs.h 2006-02-15 18:32:35.000000000 +0100 @@ -13,7 +13,7 @@ /* struct statfs64 -- there seems to be two standards - one for 32 and one for 64 bits, and they're incompatible... */ -#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__sparc64__) +#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__arch64__) struct statfs { uint32_t f_type;
* maximilian attems <maks@sternwelten.at> [2006-02-19 17:08]:> -#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__sparc64__) > +#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__arch64__)Shouldn't the whole line be replaced with just __arch64__ then? If __arch64__ is a sparc only thing, I think && (defined(__sparc__) && defined(__arch64__)) or something would help readability. -- Martin Michlmayr http://www.cyrius.com/
On Sun, Feb 19, 2006 at 05:08:40PM +0100, maximilian attems wrote:> > -#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__sparc64__) > +#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__arch64__) >This should be !defined(__sparc_v9__), I do believe. At least, that's what almost everyone else uses to differentiate them. Cheers, Kyle