The sense I'm getting is that while the bigendianp detection is
clever, it isn't complete. It may be that we need to use this along in conjunctin with the endianness of the OS. That is instead of big/little endian, what's needed is same/not same endian. For now, the simplest thing is to just disable all of this and wait to discover a CD-ROM drive where we have a problem.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: interface.c,v 1.10 2005/01/10 03:39:57 rocky Exp $
|
$Id: interface.c,v 1.11 2005/01/14 03:41:11 rocky Exp $
|
||||||
|
|
||||||
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
|
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
|
||||||
Copyright (C) 1998 Monty xiphmont@mit.edu
|
Copyright (C) 1998 Monty xiphmont@mit.edu
|
||||||
@@ -111,7 +111,16 @@ cdda_open(cdrom_drive_t *d)
|
|||||||
|
|
||||||
/* d->select_speed(d,d->maxspeed); most drives are full speed by default */
|
/* d->select_speed(d,d->maxspeed); most drives are full speed by default */
|
||||||
if (d->bigendianp==-1)
|
if (d->bigendianp==-1)
|
||||||
|
#ifdef USE_DATA_BIGENDIANP
|
||||||
d->bigendianp=data_bigendianp(d);
|
d->bigendianp=data_bigendianp(d);
|
||||||
|
#else
|
||||||
|
#if WORDS_BIGENDIAN
|
||||||
|
d->bigendianp=1;
|
||||||
|
#else
|
||||||
|
d->bigendianp=0;
|
||||||
|
#endif /*WORDS_BIGENDIAN*/
|
||||||
|
#endif /*USE_DATA_BIGENDIANP*/
|
||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: scan_devices.c,v 1.9 2005/01/09 01:50:56 rocky Exp $
|
$Id: scan_devices.c,v 1.10 2005/01/14 03:41:11 rocky Exp $
|
||||||
|
|
||||||
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
|
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
|
||||||
Copyright (C) 1998 Monty xiphmont@mit.edu
|
Copyright (C) 1998 Monty xiphmont@mit.edu
|
||||||
@@ -154,7 +154,6 @@ test_resolve_symlink(const char *file,int messagedest,char **messages)
|
|||||||
cdrom_drive_t *
|
cdrom_drive_t *
|
||||||
cdda_identify_cooked(const char *dev, int messagedest, char **messages)
|
cdda_identify_cooked(const char *dev, int messagedest, char **messages)
|
||||||
{
|
{
|
||||||
|
|
||||||
cdrom_drive_t *d=NULL;
|
cdrom_drive_t *d=NULL;
|
||||||
int drive_type = 0;
|
int drive_type = 0;
|
||||||
char *description=NULL;
|
char *description=NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user