Skip to content

Commit

Permalink
Date: Wed, 24 Nov 2004 01:25:48 +0100
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
slouken committed Nov 30, 2004
1 parent ee4abba commit ab31999
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/cdrom/linux/SDL_syscdrom.c
Expand Up @@ -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
Expand Down

0 comments on commit ab31999

Please sign in to comment.