diff options
author | hoek <hoek@FreeBSD.org> | 2003-01-05 01:30:19 +0800 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 2003-01-05 01:30:19 +0800 |
commit | 6f287d4cf2c2f0a0967d796580ea3031bf97f541 (patch) | |
tree | a2cd588d5d26264154cbe0abd5f22f13612b0ecf /audio/cdplay/files | |
parent | 8c20a3cd265e6a536d7d315aafb2cde5b1dc2031 (diff) | |
download | freebsd-ports-gnome-6f287d4cf2c2f0a0967d796580ea3031bf97f541.tar.gz freebsd-ports-gnome-6f287d4cf2c2f0a0967d796580ea3031bf97f541.tar.zst freebsd-ports-gnome-6f287d4cf2c2f0a0967d796580ea3031bf97f541.zip |
Grab the default CDROM device from $CDROM, just like cdcontrol(1).
Diffstat (limited to 'audio/cdplay/files')
-rw-r--r-- | audio/cdplay/files/patch-ae | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/audio/cdplay/files/patch-ae b/audio/cdplay/files/patch-ae index c782287bfc81..0c7c50aec1e0 100644 --- a/audio/cdplay/files/patch-ae +++ b/audio/cdplay/files/patch-ae @@ -1,7 +1,18 @@ diff -ur ../cdplay-0.92.orig/main.c ./main.c --- ../cdplay-0.92.orig/main.c Mon Nov 17 04:26:26 1997 +++ ./main.c Sat Jun 27 00:29:34 1998 -@@ -77,10 +77,11 @@ +@@ -39,7 +39,9 @@ + struct timeval stime; + + /* Parse arguments */ +- cd_device=DEVICE; ++ cd_device=getenv("CDROM"); ++ if (cd_device==NULL) ++ cd_device=DEVICE; + if(argc>1 && !strcmp(argv[1],"-d")) + cd_device=argv[2]; + else if(argc>1) +@@ -77,10 +79,11 @@ else if(cmd[0]=='r'){message="rew";rew();} else if(cmd[0]=='s'){message="stop";stop();} else if(cmd[0]=='e'){message="eject";eject();} |