[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cdrtools-2.01a25: Patch to make cdrtools 2.01a25 Linux compatible

Meino Christian Cramer wrote:

 attached there is  a patch to make cdrtools 2.01 compatible to Linux
 If the patch is not needed for some distros, which are assembled
 somehow, it does not harm anything...

 Kind regards, 
 Meino Cramer


diff -Naur cdrtools-2.01/libscg/scsi-linux-sg.c cdrtools-2.01.new/libscg/scsi-linux-sg.c --- cdrtools-2.01/libscg/scsi-linux-sg.c 2004-01-14 18:54:01.000000000 +0100 +++ cdrtools-2.01.new/libscg/scsi-linux-sg.c 2004-01-20 06:34:23.000000000 +0100 @@ -66,6 +66,7 @@ #if LINUX_VERSION_CODE >= 0x01031a /* <linux/scsi.h> introduced in 1.3.26 */ #if LINUX_VERSION_CODE >= 0x020000 /* <scsi/scsi.h> introduced somewhere. */ /* Need to fine tune the ifdef so we get the transition point right. */ +#define u8 char #include <scsi/scsi.h> #else #include <linux/scsi.h>
I don't believe this is correct. The "u8" type is normally an unsigned eight bit value, similar to "unsigned char" on most machines.

E. Robert Bogusta
  It seemed like a good idea at the time

Reply to: