5d39f475095b32c88e8f13084e31405f3fe61aae
[hdw-linux/hdw-linux.git] / packages / hackbard / cdrtools / u8.patch
1 --- ./libscg/scsi-linux-sg.c.orig       2004-08-13 14:21:18.092637976 +0200
2 +++ ./libscg/scsi-linux-sg.c    2004-08-13 14:23:28.209857152 +0200
3 @@ -65,6 +65,12 @@
4  
5  #if LINUX_VERSION_CODE >= 0x01031a /* <linux/scsi.h> introduced in 1.3.26 */
6  #if LINUX_VERSION_CODE >= 0x020000 /* <scsi/scsi.h> introduced somewhere. */
7 +#if LINUX_VERSION_CODE >= 0x020600 /* header changes for kernel >= 2.6 */
8 +#define __KERNEL__
9 +#include <linux/compiler.h>
10 +#include <asm/types.h>
11 +#undef __KERNEL__
12 +#endif
13  /* Need to fine tune the ifdef so we get the transition point right. */
14  #include <scsi/scsi.h>
15  #else