--- cdrtools-2.01/libscg/scsi-linux-sg.c.orig 2003-02-05 21:01:31.000000000 +0200 +++ cdrtools-2.01/libscg/scsi-linux-sg.c 2003-02-05 21:16:33.000000000 +0200 @@ -66,6 +66,11 @@ #if LINUX_VERSION_CODE >= 0x01031a /* introduced in 1.3.26 */ #if LINUX_VERSION_CODE >= 0x020000 /* introduced somewhere. */ /* Need to fine tune the ifdef so we get the transition point right. */ +#if LINUX_VERSION_CODE >= 0x020500 /* 2.5.x breaks things again */ +#define __KERNEL__ +#include +#undef __KERNEL__ +#endif #include #else #include