summary refs log tree commit diff
path: root/include/pthread.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-25 10:42:52 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-25 12:20:47 +0200
commit2da5f22fff639e891b9f516724683d9d7ad1511c (patch)
tree89ef1ccd5f2d6d3363704cd03a797f94a9ba9da3 /include/pthread.h
parentf66d9abca7ecc4ee4c7afcc1d1496411bfc70911 (diff)
downloadglibc-2da5f22fff639e891b9f516724683d9d7ad1511c.tar.gz
glibc-2da5f22fff639e891b9f516724683d9d7ad1511c.tar.xz
glibc-2da5f22fff639e891b9f516724683d9d7ad1511c.zip
Linux: Move mq_notify from librt to libc
The symbol was moved using scripts/move-symbol-to-libc.py.

An explicit call from fork into the mq_notify implementation replaces
the previous use of pthread_atfork.

Reviewed-by: Adhemerva Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h
index 1158919247..819bf3f235 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -13,6 +13,9 @@ 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));