From 2a42c28786f15f007db8e03fc79ec8577a446faa Mon Sep 17 00:00:00 2001 From: eddyg Date: Fri, 10 Oct 2008 00:41:15 +0000 Subject: libhb: Fix linux compilation. Only set the pthread mutex type on cygwin since it is the only one that is using the wrong one as a default. Avoids having to get the enums right across OS's. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1824 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/ports.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libhb/ports.c b/libhb/ports.c index 10f84dc9e..3754a4529 100644 --- a/libhb/ports.c +++ b/libhb/ports.c @@ -412,7 +412,10 @@ hb_lock_t * hb_lock_init() pthread_mutexattr_t mta; pthread_mutexattr_init(&mta); + +#if defined( SYS_CYGWIN ) pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_NORMAL); +#endif pthread_mutex_init( &l->mutex, &mta ); //#elif defined( SYS_CYGWIN ) -- cgit v1.2.3