[FFmpeg-devel] [PATCH] fix libavdevice/audio.c build on FreeBSD

Måns Rullgård mans
Sun Oct 19 14:32:11 CEST 2008


"Alexis Ballier" <alexis.ballier at gmail.com> writes:

> Hi,
>
> libavdevice/audio.c uses select() and the fd_set structure which afaik
> is defined in sys/select.h but does not include it.
> On glibc systems this doesn't matter as sys/time.h already includes
> sys/select.h but on fbsd 7.0 this causes me a build failure.
> I've copied the #ifery from ffmpeg.c
>
> Index: libavdevice/audio.c
> ===================================================================
> --- libavdevice/audio.c	(revision 15646)
> +++ libavdevice/audio.c	(working copy)
> @@ -34,6 +34,9 @@
>  #include <fcntl.h>
>  #include <sys/ioctl.h>
>  #include <sys/time.h>
> +#ifdef HAVE_SYS_SELECT_H
> +#include <sys/select.h>
> +#endif

Does any system with OSS audio not have sys/select.h?  Until we find
one, I'd drop the #ifdef.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list