From 0d255f07bf46948289a2698a4a7063514d0e1ef9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 28 Nov 2013 19:28:38 +0100 Subject: build: make pthreads mandatory pthreads should be available anywhere. Even if not, for environment without threads a pthread wrapper could be provided that can't actually start threads, thus disabling features that require threads. Make pthreads mandatory in order to simplify build dependencies and to reduce ifdeffery. (Admittedly, there wasn't much complexity, but maybe we will use pthreads more in the future, and then it'd become a real bother.) --- video/mp_image.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'video/mp_image.c') diff --git a/video/mp_image.c b/video/mp_image.c index 9b96bab67d..242e09e2d0 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -38,15 +39,9 @@ #include "video/filter/vf.h" -#if HAVE_PTHREADS -#include static pthread_mutex_t refcount_mutex = PTHREAD_MUTEX_INITIALIZER; #define refcount_lock() pthread_mutex_lock(&refcount_mutex) #define refcount_unlock() pthread_mutex_unlock(&refcount_mutex) -#else -#define refcount_lock() 0 -#define refcount_unlock() 0 -#endif struct m_refcount { void *arg; -- cgit v1.2.3