pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/cdparanoia/patches files missed in last commit



details:   https://anonhg.NetBSD.org/pkgsrc/rev/94081174acc4
branches:  trunk
changeset: 462957:94081174acc4
user:      grant <grant%pkgsrc.org@localhost>
date:      Mon Oct 20 12:08:03 2003 +0000

description:
files missed in last commit

diffstat:

 audio/cdparanoia/patches/patch-ch |  53 +++++++++++++++++++++++++++++++++++++++
 audio/cdparanoia/patches/patch-ci |  32 +++++++++++++++++++++++
 2 files changed, 85 insertions(+), 0 deletions(-)

diffs (93 lines):

diff -r 2f94c7058253 -r 94081174acc4 audio/cdparanoia/patches/patch-ch
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-ch Mon Oct 20 12:08:03 2003 +0000
@@ -0,0 +1,53 @@
+$NetBSD: patch-ch,v 1.1 2003/10/20 12:08:03 grant Exp $
+
+--- interface/cdda_interface.h.orig    2001-03-24 12:15:46.000000000 +1100
++++ interface/cdda_interface.h
+@@ -21,6 +21,11 @@
+ #include <sys/types.h>
+ #include <signal.h>
+ 
++#ifdef __FreeBSD__
++#include <stdio.h>
++#include <camlib.h>
++#endif
++
+ #define MAXTRK 100
+ 
+ typedef struct TOC {  /* structure of table of contents */
+@@ -46,14 +51,20 @@ typedef struct cdrom_drive{
+ 
+   int opened; /* This struct may just represent a candidate for opening */
+ 
++#ifndef __FreeBSD__
+   char *cdda_device_name;
+   char *ioctl_device_name;
+ 
+   int cdda_fd;
+-  int ioctl_fd;
+ 
+-  char *drive_model;
+   int drive_type;
++#else
++  struct cam_device *dev;
++  union ccb *ccb;
++#endif
++
++  int ioctl_fd;
++  char *drive_model;
+   int interface;
+   int bigendianp;
+   int nsectors;
+@@ -83,9 +94,13 @@ typedef struct cdrom_drive{
+   int is_mmc;
+ 
+   /* SCSI command buffer and offset pointers */
++#ifndef __FreeBSD__
+   unsigned char *sg;
+   unsigned char *sg_buffer;
+   unsigned char inqbytes[4];
++#else
++  unsigned char *sg_buffer;
++#endif
+ 
+   /* Scsi parameters and state */
+   unsigned char density;
diff -r 2f94c7058253 -r 94081174acc4 audio/cdparanoia/patches/patch-ci
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-ci Mon Oct 20 12:08:03 2003 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-ci,v 1.1 2003/10/20 12:08:03 grant Exp $
+
+--- interface/interface.c.orig 2000-04-20 08:41:04.000000000 +1000
++++ interface/interface.c
+@@ -29,13 +29,26 @@ int cdda_close(cdrom_drive *d){
+       d->enable_cdda(d,0);
+ 
+     _clean_messages(d);
++#ifndef __FreeBSD__
+     if(d->cdda_device_name)free(d->cdda_device_name);
+     if(d->ioctl_device_name)free(d->ioctl_device_name);
+     if(d->drive_model)free(d->drive_model);
+     if(d->cdda_fd!=-1)close(d->cdda_fd);
+     if(d->ioctl_fd!=-1 && d->ioctl_fd!=d->cdda_fd)close(d->ioctl_fd);
+     if(d->sg)free(d->sg);
+-    
++#else
++    if(d->drive_model)
++        free(d->drive_model);
++    if(d->ccb)
++        cam_freeccb(d->ccb);
++    if(d->dev)
++        cam_close_device(d->dev);
++    if(d->sg_buffer)
++        free(d->sg_buffer);
++    if(d->ioctl_fd != -1)
++        close(d->ioctl_fd);
++#endif
++
+     free(d);
+   }
+   return(0);



Home | Main Index | Thread Index | Old Index