Skip to content
Browse files

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
  • Loading branch information
slouken committed Nov 30, 2004
1 parent ee4abba commit ab3199972614077ac7cd291e447c2ed29c1012e8
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/cdrom/linux/SDL_syscdrom.c
@@ -37,6 +37,17 @@ static char rcsid =
#include <errno.h>
#include <unistd.h>
#ifdef __linux__
/* linux 2.6.9 workaround */
#include <linux/version.h>
#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>
#ifdef __SVR4

0 comments on commit ab31999

Please sign in to comment.