Ticket #8214: patch-mythmusic-mythmusic-cddecoder.patch

File patch-mythmusic-mythmusic-cddecoder.patch, 941 bytes (added by Bernhard Fröhlich <decke@…>, 10 years ago)

mythmusic build fix

  • mythmusic/mythmusic/cddecoder.h

    old new  
    99#include <vector>
    1010#endif
    1111
    12 #ifdef __linux__
     12#if defined(__linux__) || defined(__FreeBSD__)
    1313#include <cdaudio.h>
    1414extern "C" {
    1515#include <cdda_interface.h>
     
    8080    int settracknum;
    8181    int tracknum;
    8282
    83 #ifdef __linux__
     83#if defined(__linux__) || defined(__FreeBSD__)
    8484    cdrom_drive *device;
    8585    cdrom_paranoia *paranoia;
    8686#endif
  • mythmusic/mythmusic/cddecoder.cpp

    old new  
    3333    chan(0),         output_size(0),
    3434    totalTime(0.0),  seekTime(-1.0),
    3535    settracknum(-1), tracknum(0),
    36 #ifdef __linux__
     36#if defined(__linux__) || defined(__FreeBSD__)
    3737    device(NULL),    paranoia(NULL),
    3838#endif
    3939    start(0),        end(0),