[FFmpeg-devel] [PATCH] Check that pthreads is compatible with compiler.

Michael Niedermayer michaelni at gmx.at
Mon Dec 30 03:04:28 CET 2013


On Mon, Dec 30, 2013 at 12:48:25AM +0100, Reimar Döffinger wrote:
> In particular the mutex initialization for example won't actually
> compile with e.g. gcc 2.95.
> 
> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> ---
>  configure | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configure b/configure
> index 2604ae7..de2d87a 100755
> --- a/configure
> +++ b/configure
> @@ -4359,6 +4359,7 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
>      elif ! check_func pthread_join && ! check_func pthread_create; then
>          disable pthreads
>      fi
> +    check_code cc "pthread.h" "static pthread_mutex_t atomic_lock = PTHREAD_MUTEX_INITIALIZER" || disable pthreads
>  fi

LGTM

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131230/f522da80/attachment.asc>


More information about the ffmpeg-devel mailing list