Diego Biurrun <[email protected]> writes:

> We already require this XSI standard in many files in Libav.
> Furthermore enabling this globally should expose necessary
> functionality that gets hidden on some (BSD) systems if
> _POSIX_C_SOURCE is enabled without _XOPEN_SOURCE.
> ---
>  configure                    |    3 +--
>  doc/general.texi             |    8 --------
>  ffmpeg.c                     |    3 ---
>  ffplay.c                     |    2 --
>  ffserver.c                   |    2 --
>  libavcodec/libxvidff.c       |    3 ---
>  libavdevice/bktr.c           |    1 -
>  libavdevice/x11grab.c        |    2 --
>  libavformat/applehttp.c      |    1 -
>  libavformat/applehttpproto.c |    1 -
>  libavformat/avio.c           |    3 +--
>  libavformat/rtpdec.c         |    3 ---
>  12 files changed, 2 insertions(+), 30 deletions(-)
>
> diff --git a/configure b/configure
> index 955a568..1eebce9 100755
> --- a/configure
> +++ b/configure
> @@ -2316,7 +2316,7 @@ if test "$?" != 0; then
>      die "C compiler test failed."
>  fi
>  
> -add_cppflags -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112
> +add_cppflags -D_ISOC99_SOURCE -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112

Adding at the end of the line would put them in alphabetical order.

Rest of patch seems OK.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to