From da8e3710d8791f4b7f164ba9eb45b823ada44634 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 23 Apr 2021 10:11:51 +0200 Subject: nptl: Move pthread_spin_lock into libc The symbol was moved using scripts/move-symbol-to-libc.py. --- sysdeps/ia64/nptl/pthread_spin_lock.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sysdeps/ia64/nptl/pthread_spin_lock.c') diff --git a/sysdeps/ia64/nptl/pthread_spin_lock.c b/sysdeps/ia64/nptl/pthread_spin_lock.c index 87eebc7fe9..b80102187c 100644 --- a/sysdeps/ia64/nptl/pthread_spin_lock.c +++ b/sysdeps/ia64/nptl/pthread_spin_lock.c @@ -17,9 +17,10 @@ . */ #include "pthreadP.h" +#include int -pthread_spin_lock (pthread_spinlock_t *lock) +__pthread_spin_lock (pthread_spinlock_t *lock) { int *p = (int *) lock; @@ -32,3 +33,10 @@ pthread_spin_lock (pthread_spinlock_t *lock) } 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 -- cgit 1.4.1