summaryrefslogtreecommitdiff
path: root/tests/api
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2015-12-07 14:51:21 +0100
committerClément Bœsch <clement@stupeflix.com>2015-12-07 14:57:33 +0100
commitdc97ff8380c2d35aebdd073bcd727084c5037c3c (patch)
tree799b016c0d28d61f2a49598d67873136ff6b3352 /tests/api
parent2730a2013daab9a69b021fe107a60e601ec9d688 (diff)
downloadffmpeg-dc97ff8380c2d35aebdd073bcd727084c5037c3c.tar.gz
fate/api: add w32+os2 support for fate-api-threadmessage
Diffstat (limited to 'tests/api')
-rw-r--r--tests/api/Makefile2
-rw-r--r--tests/api/api-threadmessage-test.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/api/Makefile b/tests/api/Makefile
index d83ac24bbc..ec0e125c01 100644
--- a/tests/api/Makefile
+++ b/tests/api/Makefile
@@ -3,7 +3,7 @@ APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264
APITESTPROGS-yes += api-seek
APITESTPROGS-yes += api-codec-param
APITESTPROGS-$(call DEMDEC, H263, H263) += api-band
-APITESTPROGS-$(HAVE_PTHREADS) += api-threadmessage
+APITESTPROGS-$(HAVE_THREADS) += api-threadmessage
APITESTPROGS += $(APITESTPROGS-yes)
APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o)
diff --git a/tests/api/api-threadmessage-test.c b/tests/api/api-threadmessage-test.c
index c78af2a1d5..3e0ac5cf19 100644
--- a/tests/api/api-threadmessage-test.c
+++ b/tests/api/api-threadmessage-test.c
@@ -22,12 +22,11 @@
* Thread message API test
*/
-#include <pthread.h>
-
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/frame.h"
#include "libavutil/threadmessage.h"
+#include "libavutil/thread.h" // not public
struct sender_data {
int id;