# HG changeset patch # User reimar # Date 1298915462 0 # Node ID d5c110e4968227da74ed83181c6d5ec7d10d3172 # Parent 1481268ccd30d4143bc13dfd85b57d8557abcdf0 Fix compilation when pthreads are not available. diff -r 1481268ccd30 -r d5c110e49682 configure --- 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 diff -r 1481268ccd30 -r d5c110e49682 libmpcodecs/dec_teletext.c --- 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 #include -#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