summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--core/mplayer.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index bc9fefb63c..cfde6d4f2d 100755
--- a/configure
+++ b/configure
@@ -1490,7 +1490,7 @@ cc_check $_ld_tmp -DPTW32_STATIC_LIB && (tmp_run || test "$_ld_static") && _ld_p
fi
fi
if test "$_pthreads" = yes ; then
- test $_ld_pthread && res_comment="using $_ld_pthread"
+ test "$_ld_pthread" && res_comment="using $_ld_pthread"
def_pthreads='#define HAVE_PTHREADS 1'
def_threads='#define HAVE_THREADS 1'
extra_cflags="$extra_cflags $THREAD_CFLAGS"
diff --git a/core/mplayer.c b/core/mplayer.c
index 0a6b4f5130..99fd4b46ed 100644
--- a/core/mplayer.c
+++ b/core/mplayer.c
@@ -22,6 +22,10 @@
#include <math.h>
#include <assert.h>
+#ifdef PTW32_STATIC_LIB
+#include <pthread.h>
+#endif
+
#include <libavutil/intreadwrite.h>
#include <libavutil/attributes.h>