From 165363409d3477a561d616c9971683b4f4906e2b Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 14 Jan 2005 03:41:11 +0000 Subject: [PATCH] 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. --- lib/cdda_interface/interface.c | 11 ++++++++++- lib/cdda_interface/scan_devices.c | 3 +-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/cdda_interface/interface.c b/lib/cdda_interface/interface.c index 94a02399..f93a5242 100644 --- a/lib/cdda_interface/interface.c +++ b/lib/cdda_interface/interface.c @@ -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 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 */ if (d->bigendianp==-1) +#ifdef USE_DATA_BIGENDIANP 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); } diff --git a/lib/cdda_interface/scan_devices.c b/lib/cdda_interface/scan_devices.c index 0c128448..1c776ada 100644 --- a/lib/cdda_interface/scan_devices.c +++ b/lib/cdda_interface/scan_devices.c @@ -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 Copyright (C) 1998 Monty xiphmont@mit.edu @@ -154,7 +154,6 @@ test_resolve_symlink(const char *file,int messagedest,char **messages) cdrom_drive_t * cdda_identify_cooked(const char *dev, int messagedest, char **messages) { - cdrom_drive_t *d=NULL; int drive_type = 0; char *description=NULL;