Some of the needed changes for FreeBSD 5.x. More may be needed.

From Heiner - thanks!
This commit is contained in:
rocky
2004-06-12 17:40:07 +00:00
parent 3146cb61a3
commit 740fdb0e4a
2 changed files with 17 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/* /*
$Id: freebsd.c,v 1.18 2004/06/05 02:47:49 rocky Exp $ $Id: freebsd.c,v 1.19 2004/06/12 17:40:07 rocky Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com> Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -27,7 +27,7 @@
# include "config.h" # include "config.h"
#endif #endif
static const char _rcsid[] = "$Id: freebsd.c,v 1.18 2004/06/05 02:47:49 rocky Exp $"; static const char _rcsid[] = "$Id: freebsd.c,v 1.19 2004/06/12 17:40:07 rocky Exp $";
#include "freebsd.h" #include "freebsd.h"
@@ -47,7 +47,7 @@ str_to_access_mode_freebsd(const char *psz_access_mode)
else if (!strcmp(psz_access_mode, "CAM")) else if (!strcmp(psz_access_mode, "CAM"))
return _AM_CAM; return _AM_CAM;
else { else {
cdio_warn ("unknown access type: %s. Default IOCTL used.", cdio_warn ("unknown access type: %s. Default ioctl used.",
psz_access_mode); psz_access_mode);
return default_access_mode; return default_access_mode;
} }

View File

@@ -1,5 +1,5 @@
/* /*
$Id: freebsd.h,v 1.9 2004/06/05 02:47:49 rocky Exp $ $Id: freebsd.h,v 1.10 2004/06/12 17:40:08 rocky Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com> Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -58,6 +58,19 @@
#ifdef HAVE_SYS_CDIO_H #ifdef HAVE_SYS_CDIO_H
# include <sys/cdio.h> # include <sys/cdio.h>
#endif #endif
#ifndef CDIOCREADAUDIO
struct ioc_read_audio
{
u_char address_format;
union msf_lba address;
int nframes;
u_char* buffer;
};
#define CDIOCREADAUDIO _IOWR('c',31,struct ioc_read_audio)
#endif
#include <sys/cdrio.h> #include <sys/cdrio.h>
#include <sys/stat.h> #include <sys/stat.h>