[FFmpeg-devel] [PATCH]Silence a warning when compiling x11grab.c

Måns Rullgård mans
Mon Dec 14 14:28:46 CET 2009


Carl Eugen Hoyos <cehoyos at rainbow.studorg.tuwien.ac.at> writes:

> Hi!
>
> I will apply attached patch (based on a comment by M?ns) if nobody
> objects.
>
> Carl Eugen
>
> Index: libavdevice/x11grab.c
> ===================================================================
> --- libavdevice/x11grab.c	(revision 20859)
> +++ libavdevice/x11grab.c	(working copy)
> @@ -35,6 +35,9 @@
>   * and Edouard Gomez <ed.gomez at free.fr>.
>   */
>  
> +//Needed for the XSI extension
> +#define _XOPEN_SOURCE 600

I wouldn't bother with the comment.  There's no other reason why you'd
define that, so it's redundant information.

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



More information about the ffmpeg-devel mailing list