Mercurial > mplayer.hg
changeset 32901:d5c110e49682
Fix compilation when pthreads are not available.
author | reimar |
---|---|
date | Mon, 28 Feb 2011 17:51:02 +0000 |
parents | 1481268ccd30 |
children | a6eb88882b9f |
files | configure libmpcodecs/dec_teletext.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Mon Feb 28 14:47:17 2011 +0000 +++ b/configure Mon Feb 28 17:51:02 2011 +0000 @@ -3598,7 +3598,7 @@ extra_cflags="$extra_cflags $THREAD_CFLAGS" else res_comment="v4l, v4l2, ao_nas, win32 loader disabled" - def_pthreads='#undef HAVE_PTHREADS' + def_pthreads='#define HAVE_PTHREADS 0' _nas=no ; _tv_v4l1=no ; _tv_v4l2=no mingw32 || _win32dll=no fi
--- a/libmpcodecs/dec_teletext.c Mon Feb 28 14:47:17 2011 +0000 +++ b/libmpcodecs/dec_teletext.c Mon Feb 28 17:51:02 2011 +0000 @@ -88,7 +88,7 @@ #include <math.h> #include <stdio.h> -#ifdef HAVE_PTHREADS +#if HAVE_PTHREADS // pthreads are needed for async updates from v4l(2) // FIXME: try to avoid using pthread calls when running only a single // thread as e.g. with DVB teletext @@ -148,7 +148,7 @@ int pll_fixed; /// vbi stream properties (buffer size,bytes per line, etc) tt_stream_props* ptsp; -#ifdef HAVE_PTHREADS +#if HAVE_PTHREADS pthread_mutex_t buffer_mutex; #endif