OSDN Git Service

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

libhb/ports.c

index 10f84dc..3754a45 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 )