diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-06 15:56:37 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-06 15:56:37 +0200 |
commit | 43b3746aff2f20c5865f559a76896fc6b131c09c (patch) | |
tree | 603b6fa77c5245efc10c5093fe10de0a67ef02d6 /nptl/pthread_barrier_destroy.c | |
parent | 5633541d3b9a78fc5283af3a2f3e824126ef785a (diff) | |
download | glibc-43b3746aff2f20c5865f559a76896fc6b131c09c.tar.gz glibc-43b3746aff2f20c5865f559a76896fc6b131c09c.tar.xz glibc-43b3746aff2f20c5865f559a76896fc6b131c09c.zip |
nptl: Move pthread_barrier_destroy into libc
The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_barrier_destroy.c')
-rw-r--r-- | nptl/pthread_barrier_destroy.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_barrier_destroy.c b/nptl/pthread_barrier_destroy.c index e815738e82..be5cde2ae9 100644 --- a/nptl/pthread_barrier_destroy.c +++ b/nptl/pthread_barrier_destroy.c @@ -20,10 +20,10 @@ #include "pthreadP.h" #include <atomic.h> #include <futex-internal.h> - +#include <shlib-compat.h> int -pthread_barrier_destroy (pthread_barrier_t *barrier) +__pthread_barrier_destroy (pthread_barrier_t *barrier) { struct pthread_barrier *bar = (struct pthread_barrier *) barrier; @@ -59,3 +59,10 @@ pthread_barrier_destroy (pthread_barrier_t *barrier) return 0; } +versioned_symbol (libc, __pthread_barrier_destroy, pthread_barrier_destroy, + GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_barrier_destroy, pthread_barrier_destroy, + GLIBC_2_2); +#endif |