cvs commit: patches/cdrtools cdrtools-2.01-kernel-2.6-2.patch cdrtools-2.01-kernel-2.6-1.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Tue Mar 9 14:25:56 PST 2004


jim         04/03/09 15:25:56

  Added:       cdrtools cdrtools-2.01-kernel-2.6-2.patch
  Removed:     cdrtools cdrtools-2.01-kernel-2.6-1.patch
  Log:
  Updated: cdrtools-2.01-kernel-2.6.patch
  
  Revision  Changes    Path
  1.1                  patches/cdrtools/cdrtools-2.01-kernel-2.6-2.patch
  
  Index: cdrtools-2.01-kernel-2.6-2.patch
  ===================================================================
  Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
  Date: 2004-03-09
  Initial Package Version: 2.01
  Origin: Jim Gifford and http://kerneltrap.org/node/view/879
  Description: Fixes CDRTools Compile with the 2.6 Kernel
   
  diff -Naur cdrtools-2.01.orig/libscg/scsi-linux-sg.c cdrtools-2.01/libscg/scsi-linux-sg.c
  --- cdrtools-2.01.orig/libscg/scsi-linux-sg.c	2004-03-07 23:43:39.000000000 +0000
  +++ cdrtools-2.01/libscg/scsi-linux-sg.c	2004-03-09 19:06:03.716645165 +0000
  @@ -65,6 +65,14 @@
   
   #if LINUX_VERSION_CODE >= 0x01031a /* <linux/scsi.h> introduced in 1.3.26 */
   #if LINUX_VERSION_CODE >= 0x020000 /* <scsi/scsi.h> introduced somewhere. */
  +
  +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
  +	#define __KERNEL__
  +	#include <asm/types.h>
  +	#include <asm/byteorder.h>
  +	#undef __KERNEL__
  +#endif
  +
   /* Need to fine tune the ifdef so we get the transition point right. */
   #include <scsi/scsi.h>
   #else
  
  
  



More information about the patches mailing list