glthread_recursive_lock_init_multithreaded has a typo that makes it not compile on Darwin. Fixed thusly (but the code for recursive locks seems half-cooked, as the two branches of the #if have the same code).

Paolo

2008-08-07  Paolo Bonzini  <[EMAIL PROTECTED]>

        * lib/lock.c (glthread_recursive_lock_init_multithreaded)
        [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.


diff --git a/lib/lock.c b/lib/lock.c
index 709da69..4d97fa4 100644
--- a/lib/lock.c
+++ b/lib/lock.c
@@ -372,7 +372,7 @@ glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock)
     }
   err = pthread_mutexattr_destroy (&attributes);
   if (err != 0)
-    return ret;
+    return err;
   lock->initialized = 1;
   return 0;
 }



Reply via email to