--- include/platform_defs.h.in.orig 2006-06-25 22:01:15.000000000 -0700 +++ include/platform_defs.h.in 2006-09-25 09:55:47.000000000 -0700 @@ -31,6 +31,11 @@ #include #include +/* we cannot define the following values on ppc64, because they get + * redefined in asm/types.h + * -- see http://oss.sgi.com/bugzilla/show_bug.cgi?id=707 */ +#if !defined(__powerpc64__) || !defined(__linux__) + typedef unsigned char __u8; typedef signed char __s8; typedef unsigned short __u16; @@ -44,6 +49,10 @@ typedef __u32 __be32; typedef __u64 __be64; +#elif defined(__powerpc64__) && defined(__linux__) +#include +#endif + #if defined(__linux__) #include #elif defined(__FreeBSD__)