Adjust for new form of compare&exchange macros.
[kopensolaris-gnu/glibc.git] / nptl / old_pthread_cond_wait.c
index 50505a2..0a503a1 100644 (file)
@@ -47,7 +47,7 @@ __pthread_cond_wait_2_0 (cond, mutex)
       (void) pthread_cond_init (newcond, NULL);
 #endif
 
-      if (atomic_compare_and_exchange_acq (&cond->cond, newcond, NULL) != 0)
+      if (atomic_compare_and_exchange_bool_acq (&cond->cond, newcond, NULL))
        /* Somebody else just initialized the condvar.  */
        free (newcond);
     }