X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=packages%2Fhackbard%2Fcdrtools%2Fu8.patch;h=5d39f475095b32c88e8f13084e31405f3fe61aae;hp=6b1d87309f532830137fbc520838f07645b0d78a;hb=61fc33132816781779b9519523cf1e7401f6cfc2;hpb=962e40b1ad682b009f91ec2773d89d53bbe67f47 diff --git a/packages/hackbard/cdrtools/u8.patch b/packages/hackbard/cdrtools/u8.patch index 6b1d873..5d39f47 100644 --- a/packages/hackbard/cdrtools/u8.patch +++ b/packages/hackbard/cdrtools/u8.patch @@ -1,11 +1,14 @@ ---- ./libscg/scsi-linux-sg.c.orig 2004-07-14 14:16:39.000000000 +0200 -+++ ./libscg/scsi-linux-sg.c 2004-07-14 14:18:21.000000000 +0200 -@@ -65,6 +65,9 @@ +--- ./libscg/scsi-linux-sg.c.orig 2004-08-13 14:21:18.092637976 +0200 ++++ ./libscg/scsi-linux-sg.c 2004-08-13 14:23:28.209857152 +0200 +@@ -65,6 +65,12 @@ #if LINUX_VERSION_CODE >= 0x01031a /* introduced in 1.3.26 */ #if LINUX_VERSION_CODE >= 0x020000 /* introduced somewhere. */ +#if LINUX_VERSION_CODE >= 0x020600 /* header changes for kernel >= 2.6 */ ++#define __KERNEL__ ++#include +#include ++#undef __KERNEL__ +#endif /* Need to fine tune the ifdef so we get the transition point right. */ #include