    cond->__data.__total_seq = 0;
    cond->__data.__wakeup_seq = 0;
    cond->__data.__woken_seq = 0;
+@@ -41,7 +63,7 @@ __pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *cond_attr)
+ 
+   LIBC_PROBE (cond_init, 2, cond, cond_attr);
+ 
+-  return 0;
++  return ret;
+ }
+ versioned_symbol (libpthread, __pthread_cond_init,
+ 		  pthread_cond_init, GLIBC_2_3_2);
 diff --git a/nptl/pthread_cond_signal.c b/nptl/pthread_cond_signal.c
 index b3a6d3d2a4..0ab2a7ce9a 100644
 --- a/nptl/pthread_cond_signal.c

 	  nwaiters = cond->__data.__nwaiters;
 	}
diff --git a/nptl/pthread_cond_init.c b/nptl/pthread_cond_init.c
index 9023370278..57171c2c80 100644
--- a/nptl/pthread_cond_init.c
+++ b/nptl/pthread_cond_init.c
@@ -29,9 +29,27 @@ __pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *cond_attr)
   cond->__data.__lock = LLL_LOCK_INITIALIZER;
   cond->__data.__futex = 0;
   cond->__data.__nwaiters = (icond_attr != NULL

+GLIBC_2.24 pthread_condattr_getprotocol_np F
+GLIBC_2.24 pthread_condattr_setprotocol_np F
-- 
2.20.1

