From 3b03bde46e331aa301bd16c6c6e94c11e073e8f8 Mon Sep 17 00:00:00 2001 From: Matt Oliver Date: Wed, 30 Sep 2015 13:41:53 +1000 Subject: [PATCH] avformat/async: Allow compilation with native threads. --- configure | 2 +- libavformat/async.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 01f17977e5..361c0248a7 100755 --- a/configure +++ b/configure @@ -2693,7 +2693,7 @@ x11grab_indev_deps="x11grab" x11grab_xcb_indev_deps="libxcb" # protocols -async_protocol_deps="pthreads" +async_protocol_deps="threads" bluray_protocol_deps="libbluray" ffrtmpcrypt_protocol_deps="!librtmp_protocol" ffrtmpcrypt_protocol_deps_any="gcrypt gmp openssl" diff --git a/libavformat/async.c b/libavformat/async.c index 003212d5b6..a01673dc6d 100644 --- a/libavformat/async.c +++ b/libavformat/async.c @@ -34,9 +34,9 @@ #include "libavutil/fifo.h" #include "libavutil/log.h" #include "libavutil/opt.h" +#include "libavutil/thread.h" #include "url.h" #include -#include #if HAVE_UNISTD_H #include