From 365f99178edff137922f9c49ce479a1862c32ce6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 30 Nov 2004 14:45:08 +0000 Subject: [PATCH] Date: Wed, 24 Nov 2004 01:25:48 +0100 From: Stephane Marchesin Subject: Re: [SDL] Problem compiling SDL 1.2.7 - there is a bug that was introduced in the kernel headers for 2.6.9 which is fixed in 2.6.10. This bug *will* byte when compiling the cdrom subsystem. A patch that works around this bug is attached. Note that users affected are not those running 2.6.9, but those using the 2.6.9 kernel headers for their system (i.e. whose libc is built against 2.6.9 headers). --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40999 --- src/cdrom/linux/SDL_syscdrom.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cdrom/linux/SDL_syscdrom.c b/src/cdrom/linux/SDL_syscdrom.c index 83f8bb575..59d1e3c0f 100644 --- a/src/cdrom/linux/SDL_syscdrom.c +++ b/src/cdrom/linux/SDL_syscdrom.c @@ -37,6 +37,17 @@ static char rcsid = #include #include #ifdef __linux__ +/* linux 2.6.9 workaround */ +#include +#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,9) +#include +#define __le64 __u64 +#define __le32 __u32 +#define __le16 __u16 +#define __be64 __u64 +#define __be32 __u32 +#define __be16 __u16 +#endif /* linux 2.6.9 workaround */ #include #endif #ifdef __SVR4