]> granicus.if.org Git - handbrake/commitdiff
libhb: Fix linux compilation. Only set the pthread mutex type on cygwin since it...
authoreddyg <eddyg.hb@myreflection.org>
Fri, 10 Oct 2008 00:41:15 +0000 (00:41 +0000)
committereddyg <eddyg.hb@myreflection.org>
Fri, 10 Oct 2008 00:41:15 +0000 (00:41 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1824 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/ports.c

index 10f84dc9e8062f1c804cc995ab52b35282e40c6b..3754a452983fce5f56386c7adc3efc63a9bfcb6d 100644 (file)
@@ -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 )