aboutsummaryrefslogtreecommitdiffstats
path: root/compat
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 /compat
parent60e26346626cc136521a250388b5c7015ba57138 (diff)
downloadffmpeg-0830e9116f786572865a9c800a9156d0c4294f27.tar.gz
avformat/udp: support w32pthreads compat
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'compat')
-rw-r--r--compat/w32pthreads.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h
index 7df33b7da4..6405e72b64 100644
--- a/compat/w32pthreads.h
+++ b/compat/w32pthreads.h
@@ -63,6 +63,9 @@ typedef CONDITION_VARIABLE pthread_cond_t;
#define InitializeCriticalSection(x) InitializeCriticalSectionEx(x, 0, 0)
#define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE)
+#define PTHREAD_CANCEL_ENABLE 1
+#define PTHREAD_CANCEL_DISABLE 0
+
static av_unused unsigned __stdcall attribute_align_arg win32thread_worker(void *arg)
{
pthread_t *h = (pthread_t*)arg;
@@ -180,4 +183,9 @@ static inline int pthread_cond_signal(pthread_cond_t *cond)
return 0;
}
+static inline int pthread_setcancelstate(int state, int *oldstate)
+{
+ return 0;
+}
+
#endif /* COMPAT_W32PTHREADS_H */