summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorphunkyfish <phunkyfish@gmail.com>2020-03-02 20:48:41 +0000
committerMarton Balint <cus@passwd.hu>2020-03-08 19:08:04 +0100
commit0830e9116f786572865a9c800a9156d0c4294f27 (patch)
tree57611e367ee1b08897a04527c07717d94d58fb52 /libavformat/udp.c
parent60e26346626cc136521a250388b5c7015ba57138 (diff)
downloadffmpeg-0830e9116f786572865a9c800a9156d0c4294f27.tar.gz
avformat/udp: support w32pthreads compat
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 23c3773c64..ad6992c57d 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -61,8 +61,13 @@
#define IPPROTO_UDPLITE 136
#endif
+#if HAVE_W32THREADS
+#undef HAVE_PTHREAD_CANCEL
+#define HAVE_PTHREAD_CANCEL 1
+#endif
+
#if HAVE_PTHREAD_CANCEL
-#include <pthread.h>
+#include "libavutil/thread.h"
#endif
#ifndef IPV6_ADD_MEMBERSHIP