On 08/08/13 01:44, Derek Buitenhuis wrote:
> Not all platforms have the function.
> 
> Signed-off-by: Derek Buitenhuis <[email protected]>
> ---
>  libavutil/file.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/libavutil/file.c b/libavutil/file.c
> index add049d..9ce0dc5 100644
> --- a/libavutil/file.c
> +++ b/libavutil/file.c
> @@ -52,8 +52,11 @@ int avpriv_open(const char *filename, int flags, ...)
>  #endif
>  
>      fd = open(filename, flags, mode);
> +#if HAVE_FCNTL
>      if (fd != -1)
>          fcntl(fd, F_SETFD, FD_CLOEXEC);
> +#endif

While at it maybe if HAVE_FCNTL && !defined(O_CLOEXEC)

lu

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to