pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/dvdrecord/patches Snarf a patch from cdrecord...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c8fc7891d819
branches:  trunk
changeset: 461722:c8fc7891d819
user:      mycroft <mycroft%pkgsrc.org@localhost>
date:      Fri Sep 19 17:49:17 2003 +0000

description:
Snarf a patch from cdrecord -- the kernel has already done a REQUEST SENSE, so
use that result.

diffstat:

 sysutils/dvdrecord/patches/patch-ac |  25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r f0964cf1bf6d -r c8fc7891d819 sysutils/dvdrecord/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/dvdrecord/patches/patch-ac       Fri Sep 19 17:49:17 2003 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ac,v 1.1 2003/09/19 17:49:17 mycroft Exp $
+
+--- cdrecord/scsi_cdr.c.orig   2003-06-01 16:10:01.000000000 +0000
++++ cdrecord/scsi_cdr.c        2003-09-01 03:10:45.000000000 +0000
+@@ -263,6 +263,12 @@
+ 
+ EXPORT int request_sense(SCSI *scgp)
+ {
++ 
++ #ifdef __NetBSD__
++      /* request sense already done by kernel */
++      scg_prsense((Uchar *)scgp->scmd->u_sense.cmd_sense,
++          scgp->scmd->sense_count);
++ #else        
+                char   sensebuf[CCS_SENSE_LEN];
+       register struct scg_cmd *scmd = scgp->scmd;
+ 
+@@ -282,6 +288,7 @@
+       if (scg_cmd(scgp) < 0)
+               return (-1);
+       scg_prsense((Uchar *)sensebuf, CCS_SENSE_LEN - scg_getresid(scgp));
++#endif
+       return (0);
+ }
+ 



Home | Main Index | Thread Index | Old Index