[MPlayer-dev-eng] [PATCH] fix ai_oss.c compilation on non linux systems

Alex Beregszaszi alex at galaktik.hu
Tue Aug 27 18:22:51 CEST 2002


On Thu, 22 Aug 2002 23:31:22 +0200
Arpi <arpi at thot.banki.hu> wrote:

> Hi,
> 
> hmm. imho it should not even be compiled for non-linux systems, as it's used
> by the v4l driver.
shouldn't it be used by the bsdbt848 driver too?

> 
> > Hi,
> > 
> > please apply this patch, because the code just includes <linux/soundcard.h>
> > without checking HAVE_SYS_SOUNDCARD_H or HAVE_SOUNDCARD_H.
> > I left the <linux/soundcard.h> because I don't know if the HAVE_SOUNDCARD_H
> > also covers that part on linux.
> > 
> > Oh, and you need to include <sys/ioctl.h> if you are using ioctl(2).
> > 
> > Bernd
> > 
> > 
> > 
> > Index: libmpdemux/ai_oss.c
> > ===================================================================
> > RCS file: /cvsroot/mplayer/main/libmpdemux/ai_oss.c,v
> > retrieving revision 1.1
> > diff -b -u -r1.1 ai_oss.c
> > --- libmpdemux/ai_oss.c	21 Aug 2002 22:50:40 -0000	1.1
> > +++ libmpdemux/ai_oss.c	22 Aug 2002 05:59:30 -0000
> > @@ -1,7 +1,16 @@
> >  #include "config.h"
> > +#ifdef HAVE_SYS_SOUNDCARD_H
> > +#include <sys/soundcard.h>
> > +#else
> > +#ifdef HAVE_SOUNDCARD_H
> > +#include <soundcard.h>
> > +#else
> >  #include <linux/soundcard.h>
> > +#endif
> > +#endif
> >  #include <fcntl.h>
> >  #include <errno.h>
> > +#include <sys/ioctl.h>
> >  
> >  #include "audio_in.h"
> >  #include "mp_msg.h"
> > 
> > 
> 
> 
> A'rpi / Astral & ESP-team
> 
> --
> Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng


-- 
Alex Beregszaszi  <alex at naxine.org>



More information about the MPlayer-dev-eng mailing list