# HG changeset patch # User diego # Date 1132884407 0 # Node ID cb84dbc30d7b1447a2ae8f3926f9e4d9b2e75f46 # Parent 11df9603e1b83a85413c6babcb67e0ebc98ab22d 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 diff -r 11df9603e1b8 -r cb84dbc30d7b libmpdemux/cddb.c --- a/libmpdemux/cddb.c Thu Nov 24 12:18:55 2005 +0000 +++ b/libmpdemux/cddb.c Fri Nov 25 02:06:47 2005 +0000 @@ -41,10 +41,12 @@ #if defined(__linux__) #include -#elif defined(__FreeBSD__) || defined(__bsdi__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) +#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) #include #elif defined(WIN32) #include +#elif (__bsdi__) + #include #endif #include "cdd.h" @@ -60,7 +62,7 @@ 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 @@ return toc.LastTrack; } -#elif defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) int read_toc(const char *dev) { int drive;