[hurd,commited] pthread: Simplify condition for hidden proto

Samuel Thibault samuel.thibault@ens-lyon.org
Sat Nov 22 20:55:40 GMT 2025


This is not needed yet for htl (only the Linux mq_notify), but we can as
well just simplify the header.
---
 include/pthread.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/pthread.h b/include/pthread.h
index 819bf3f235..9e31b74916 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -8,14 +8,10 @@ extern int __pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
 				 const pthread_barrierattr_t *__restrict
 				 __attr, unsigned int __count)
      __THROW __nonnull ((1));
-#if PTHREAD_IN_LIBC
 libc_hidden_proto (__pthread_barrier_init)
-#endif
 extern int __pthread_barrier_wait (pthread_barrier_t *__barrier)
      __THROWNL __nonnull ((1));
-#if PTHREAD_IN_LIBC
 libc_hidden_proto (__pthread_barrier_wait)
-#endif
 
 /* This function is called to initialize the pthread library.  */
 extern void __pthread_initialize (void) __attribute__ ((weak));
-- 
2.51.0



More information about the Libc-alpha mailing list