Mercurial > sdl-ios-xcode
comparison src/cdrom/linux/SDL_syscdrom.c @ 998:0e6627072f7a
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).
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 30 Nov 2004 14:45:08 +0000 |
parents | b8d311d90021 |
children | 091350827e08 |
comparison
equal
deleted
inserted
replaced
997:3bf4103b2b89 | 998:0e6627072f7a |
---|---|
35 #include <stdio.h> | 35 #include <stdio.h> |
36 #include <string.h> | 36 #include <string.h> |
37 #include <errno.h> | 37 #include <errno.h> |
38 #include <unistd.h> | 38 #include <unistd.h> |
39 #ifdef __linux__ | 39 #ifdef __linux__ |
40 /* linux 2.6.9 workaround */ | |
41 #include <linux/version.h> | |
42 #if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,9) | |
43 #include <asm/types.h> | |
44 #define __le64 __u64 | |
45 #define __le32 __u32 | |
46 #define __le16 __u16 | |
47 #define __be64 __u64 | |
48 #define __be32 __u32 | |
49 #define __be16 __u16 | |
50 #endif /* linux 2.6.9 workaround */ | |
40 #include <linux/cdrom.h> | 51 #include <linux/cdrom.h> |
41 #endif | 52 #endif |
42 #ifdef __SVR4 | 53 #ifdef __SVR4 |
43 #include <sys/cdio.h> | 54 #include <sys/cdio.h> |
44 #endif | 55 #endif |