diff options
Diffstat (limited to 'nptl/pthread_spin_trylock.c')
-rw-r--r-- | nptl/pthread_spin_trylock.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nptl/pthread_spin_trylock.c b/nptl/pthread_spin_trylock.c index 470734ad64..498c1882ba 100644 --- a/nptl/pthread_spin_trylock.c +++ b/nptl/pthread_spin_trylock.c @@ -19,9 +19,10 @@ #include <errno.h> #include <atomic.h> #include "pthreadP.h" +#include <shlib-compat.h> int -pthread_spin_trylock (pthread_spinlock_t *lock) +__pthread_spin_trylock (pthread_spinlock_t *lock) { /* For the spin try lock, we have the following possibilities: @@ -77,3 +78,10 @@ pthread_spin_trylock (pthread_spinlock_t *lock) return EBUSY; } +versioned_symbol (libc, __pthread_spin_trylock, pthread_spin_trylock, + GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_spin_trylock, pthread_spin_trylock, + GLIBC_2_2); +#endif |