aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/nptl/pthread_spin_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/nptl/pthread_spin_lock.c')
-rw-r--r--sysdeps/powerpc/nptl/pthread_spin_lock.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/powerpc/nptl/pthread_spin_lock.c b/sysdeps/powerpc/nptl/pthread_spin_lock.c
index 28bb538d46..a17dd41c10 100644
--- a/sysdeps/powerpc/nptl/pthread_spin_lock.c
+++ b/sysdeps/powerpc/nptl/pthread_spin_lock.c
@@ -17,9 +17,10 @@
<https://www.gnu.org/licenses/>. */
#include "pthreadP.h"
+#include <shlib-compat.h>
int
-pthread_spin_lock (pthread_spinlock_t *lock)
+__pthread_spin_lock (pthread_spinlock_t *lock)
{
unsigned int __tmp;
@@ -41,3 +42,8 @@ pthread_spin_lock (pthread_spinlock_t *lock)
: "cr0", "memory");
return 0;
}
+versioned_symbol (libc, __pthread_spin_lock, pthread_spin_lock, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_spin_lock, pthread_spin_lock, GLIBC_2_2);
+#endif