summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-25 02:06:47 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-25 02:06:47 +0000
commitc98a02849f9701fa912380af3185e6a3877b5e68 (patch)
tree6fe336372c1837515c766694484d1fd8b966d716 /libmpdemux
parent89e912ea7b746fd18b6661903a048cd4e4891e01 (diff)
downloadmpv-c98a02849f9701fa912380af3185e6a3877b5e68.tar.bz2
mpv-c98a02849f9701fa912380af3185e6a3877b5e68.tar.xz
When it comes to CD/DVD handling bsdi has a linux CD/DVD compatibility
library, use this to fix building on this (weird ;)) system. patch by Steven M. Schultz sms __ at __ 2BSD __ dot __ COM git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17045 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/cddb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libmpdemux/cddb.c b/libmpdemux/cddb.c
index 2ec483e28a..1d4010005b 100644
--- a/libmpdemux/cddb.c
+++ b/libmpdemux/cddb.c
@@ -41,10 +41,12 @@
#if defined(__linux__)
#include <linux/cdrom.h>
-#elif defined(__FreeBSD__) || defined(__bsdi__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#include <sys/cdio.h>
#elif defined(WIN32)
#include <ddk/ntddcdrm.h>
+#elif (__bsdi__)
+ #include <dvd.h>
#endif
#include "cdd.h"
@@ -60,7 +62,7 @@ stream_t* open_cdda(char *dev, char *track);
static cd_toc_t cdtoc[100];
static int cdtoc_last_track;
-#if defined(__linux__)
+#if defined(__linux__) || defined(__bsdi__)
int
read_toc(const char *dev) {
int drive;
@@ -131,7 +133,7 @@ read_toc(const char *dev) {
return toc.LastTrack;
}
-#elif defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
int
read_toc(const char *dev) {
int drive;