summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-05 02:26:56 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-05 02:26:56 +0000
commit460fac74621a6de84f8a66c1dbb164049c9c498b (patch)
treed079ba1b222de14ed0b4d590e13ae5719c3ff898 /mplayer.c
parent72cfe9c77c1b0c5b26e941fdc33c2dfa9ce33129 (diff)
downloadmpv-460fac74621a6de84f8a66c1dbb164049c9c498b.tar.bz2
mpv-460fac74621a6de84f8a66c1dbb164049c9c498b.tar.xz
Solaris 8 support - patch by Marcus Comstedt <marcus@idonex.se>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1021 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 33b8fc4eb9..60d7130ae1 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -16,7 +16,11 @@
#include <sys/time.h>
#include <sys/stat.h>
#include <fcntl.h>
+#ifdef __sun
+#include <sys/audioio.h>
+#else
#include <sys/soundcard.h>
+#endif
#include "version.h"
#include "config.h"
@@ -501,7 +505,11 @@ int f; // filedes
#endif
if(!filename){
+#ifdef __sun
+ if(vcd_track) filename="/vol/dev/aliases/cdrom0";
+#else
if(vcd_track) filename="/dev/cdrom";
+#endif
else {
printf("%s",help_text); exit(0);
}