Don't rely on the kernel to tell us what the cpu target is ... we'll just use the default values all the time instead. http://bugs.gentoo.org/152614 --- lib/direct/ppcasm_memcpy_cachable.S +++ lib/direct/ppcasm_memcpy_cachable.S @@ -34,8 +34,6 @@ #define __ASSEMBLY__ -#include - #if defined(CONFIG_8xx) || defined(CONFIG_403GCX) #define L1_CACHE_LINE_SIZE 16 #define LG_L1_CACHE_LINE_SIZE 4 Don't pollute the namespace with type hacks, just use the real deal. --- include/dfb_types.h +++ include/dfb_types.h @@ -1,32 +1,7 @@ #ifndef __DFB_TYPES_H__ #define __DFB_TYPES_H__ +#include #include -#ifndef USE_KOS - -#define __u8 u_int8_t -#define __u16 u_int16_t -#define __u32 u_int32_t -#define __u64 u_int64_t - -#define __s8 int8_t -#define __s16 int16_t -#define __s32 int32_t -#define __s64 int64_t - -#else - -#define __u8 uint8 -#define __u16 uint16 -#define __u32 uint32 -#define __u64 uint64 - -#define __s8 sint8 -#define __s16 sint16 -#define __s32 sint32 -#define __s64 sint64 - -#endif - #endif some arches (*cough* powerpc *cough*) are retarded and export a completely worthless asm/page.h ... so set a fallback for PAGE_SIZE --- lib/direct/system.c +++ lib/direct/system.c @@ -35,7 +35,8 @@ #if HAVE_ASM_PAGE_H #include -#else +#endif +#ifndef PAGE_SIZE #define PAGE_SIZE sysconf( _SC_PAGESIZE ) #endif Don't waste time on linux/compiler.h --- ./interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_v4l.c +++ ./interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_v4l.c @@ -44,7 +44,6 @@ #include #include -#include #include "videodev.h" #include