summaryrefslogtreecommitdiffstats
path: root/stream/stream_cddb.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-10 14:56:23 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-10 14:56:23 +0000
commitd1f409719c704b502427b67f75b3073cd25ff302 (patch)
tree17b1e380506a1ec91e98dafa08b76f24dd6a6e67 /stream/stream_cddb.c
parent793eb3b6819e57285413aaca02fd4abd934b0e68 (diff)
downloadmpv-d1f409719c704b502427b67f75b3073cd25ff302.tar.bz2
mpv-d1f409719c704b502427b67f75b3073cd25ff302.tar.xz
GNU/kFreeBSD support, closes Bugzilla #704.
patch by Petr Salinger, Petr.Salinger seznam cz git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21866 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_cddb.c')
-rw-r--r--stream/stream_cddb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c
index c5e3d26859..28b2687020 100644
--- a/stream/stream_cddb.c
+++ b/stream/stream_cddb.c
@@ -41,7 +41,7 @@
#if defined(__linux__)
#include <linux/cdrom.h>
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#include <sys/cdio.h>
#elif defined(WIN32)
#include <ddk/ntddcdrm.h>
@@ -110,7 +110,7 @@ read_toc(const char *dev) {
cdtoc[i].sec = tocentry.cdte_addr.msf.second;
cdtoc[i].frame = tocentry.cdte_addr.msf.frame;
}
-#elif defined(__FreeBSD__) || defined(__DragonFly__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
{
struct ioc_toc_header tochdr;
ioctl(drive, CDIOREADTOCHEADER, &tochdr);