diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-22 15:12:09 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 17:06:42 +0200 |
commit | c7b1cd4ad100d01f3202a44ec3b84b87bea5ef19 (patch) | |
tree | f34f4773fd39afc05eac4f4511222b830e7dc0f9 /nptl/pthread_spin_destroy.c | |
parent | d9b600c98503b4094bc168b9b7452ea39a0abf30 (diff) | |
download | glibc-c7b1cd4ad100d01f3202a44ec3b84b87bea5ef19.tar.gz glibc-c7b1cd4ad100d01f3202a44ec3b84b87bea5ef19.tar.xz glibc-c7b1cd4ad100d01f3202a44ec3b84b87bea5ef19.zip |
nptl: Move pthread_spin_destroy into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_spin_destroy.c')
-rw-r--r-- | nptl/pthread_spin_destroy.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_spin_destroy.c b/nptl/pthread_spin_destroy.c index 776ba12e35..dcdbf18c4a 100644 --- a/nptl/pthread_spin_destroy.c +++ b/nptl/pthread_spin_destroy.c @@ -17,11 +17,18 @@ <https://www.gnu.org/licenses/>. */ #include "pthreadP.h" - +#include <shlib-compat.h> int -pthread_spin_destroy (pthread_spinlock_t *lock) +__pthread_spin_destroy (pthread_spinlock_t *lock) { /* Nothing to do. */ return 0; } +versioned_symbol (libc, __pthread_spin_destroy, pthread_spin_destroy, + GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_spin_destroy, pthread_spin_destroy, + GLIBC_2_2); +#endif |