[MPlayer-dev-eng] [PATCH] fix ai_oss.c compilation on non linux systems
Arpi
arpi at thot.banki.hu
Thu Aug 22 23:31:22 CEST 2002
Hi,
hmm. imho it should not even be compiled for non-linux systems, as it's used
by the v4l driver.
> 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
More information about the MPlayer-dev-eng
mailing list