aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-12 18:01:10 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-12 18:01:10 +0000
commit3552027c8dafcd8713691073955c967c42b5a863 (patch)
tree8eb7c16c6e197da879b25b4b5144dc757876da14 /audio
parent5971c8da858feed68a8dba0e52fd17a458be4cf6 (diff)
downloadports-3552027c8dafcd8713691073955c967c42b5a863.tar.gz
ports-3552027c8dafcd8713691073955c967c42b5a863.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/xcdplayer/files/cdrom_freebsd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/xcdplayer/files/cdrom_freebsd.c b/audio/xcdplayer/files/cdrom_freebsd.c
index 47a26f8e8eb3..6d164612a4d5 100644
--- a/audio/xcdplayer/files/cdrom_freebsd.c
+++ b/audio/xcdplayer/files/cdrom_freebsd.c
@@ -33,6 +33,7 @@ static int c;
extern char *device;
static char cdrom[] = "/dev/rcd0c";
+static char cdrom1[] = "/dev/rmcd0c";
cdrom_info cdi;
char info_filename[256];
@@ -95,11 +96,13 @@ cdrom_open() {
if (device != NULL) {
if ((cdrom_fd = open(device, O_RDONLY)) == -1) {
- perror("open: ");
+ perror(device);
return(-1);
}
} else {
- if ((cdrom_fd = open(cdrom, O_RDONLY)) == -1) {
+ if ( (cdrom_fd = open(cdrom, O_RDONLY)) == -1
+ && (cdrom_fd = open(cdrom1, O_RDONLY)) == -1
+ ) {
perror("open: ");
return(-1);
}