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
This commit is contained in:
parent
ca383efa22
commit
365f99178e
1 changed files with 11 additions and 0 deletions
|
@ -37,6 +37,17 @@ static char rcsid =
|
|||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#ifdef __linux__
|
||||
/* linux 2.6.9 workaround */
|
||||
#include <linux/version.h>
|
||||
#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,9)
|
||||
#include <asm/types.h>
|
||||
#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 <linux/cdrom.h>
|
||||
#endif
|
||||
#ifdef __SVR4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue