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

Johannes Feigl jaf.corporation at gmx.at
Thu Aug 22 11:46:59 CEST 2002


commited

mfg johannes

On Thu, Aug 22, 2002 at 07:51:27AM +0200, Bernd Ernesti wrote:
> 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"




More information about the MPlayer-dev-eng mailing list