summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreddyg <[email protected]>2008-10-10 00:41:15 +0000
committereddyg <[email protected]>2008-10-10 00:41:15 +0000
commit2a42c28786f15f007db8e03fc79ec8577a446faa (patch)
treef3388608290b2c869933d3ee88d7fddb0f2a0d92
parentf63cfb81c8a7e3eba6ca68c7399cece5f57bbb3c (diff)
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
-rw-r--r--libhb/ports.c3
1 files changed, 3 insertions, 0 deletions
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 )