[klibc] [patch] statfs64 sparc64 fix

maximilian attems maks at sternwelten.at
Sun Feb 19 09:00:37 PST 2006


It seems that klibc uses __sparc64__ to determine if it's compiled in 64
bit mode on sparc, unfortunatly gcc doesn't define __sparc64__ :)

use __sparc_v9__ instead as proposed by Kyle McMartin <kyle at parisc-linux.org>,
based on a patch by Sjoerd Simons <sjoerd at spring.luon.net>

Signed-off-by: maximilian attems <maks at 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(__sparc_v9__)
 
 struct statfs {
         uint32_t f_type;



More information about the klibc mailing list