On Thu, 28 May 2015 11:30:57 +0300
Martin Storsjö <[email protected]> wrote:

> This fixes building with gcrypt-backed gnutls versions, broken
> in 57cde2b180.
> ---
>  libavformat/tls_gnutls.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/libavformat/tls_gnutls.c b/libavformat/tls_gnutls.c
> index 1d3f57c..4fe3b39 100644
> --- a/libavformat/tls_gnutls.c
> +++ b/libavformat/tls_gnutls.c
> @@ -36,6 +36,12 @@
>  #include "libavutil/parseutils.h"
>  
>  #if HAVE_THREADS && GNUTLS_VERSION_NUMBER <= 0x020b00
> +#if HAVE_PTHREADS
> +#include <pthread.h>
> +#else
> +#include "compat/w32pthreads.h"
> +#endif
> +
>  #include <gcrypt.h>
>  GCRY_THREAD_OPTION_PTHREAD_IMPL;
>  #endif

I'd suggest including libavutil/thread.h instead. (tls_openssl.c uses
this, but I forgot it for tls_gnutls.c.)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to