From a4f483a246685dbe0fec0737936a151cc00eeecc Mon Sep 17 00:00:00 2001
From: Matt Oliver <protogonoi@gmail.com>
Date: Fri, 25 Sep 2015 17:52:37 +1000
Subject: [PATCH 2/3] 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 f6bc622..e21820a 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 003212d..a01673d 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 <stdint.h>
-#include <pthread.h>
 
 #if HAVE_UNISTD_H
 #include <unistd.h>
-- 
1.9.5.github.0

