aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_spin_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_spin_init.c')
-rw-r--r--nptl/pthread_spin_init.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nptl/pthread_spin_init.c b/nptl/pthread_spin_init.c
index 470a6fa..c6a5147 100644
--- a/nptl/pthread_spin_init.c
+++ b/nptl/pthread_spin_init.c
@@ -18,11 +18,17 @@
<https://www.gnu.org/licenses/>. */
#include "pthreadP.h"
+#include <shlib-compat.h>
int
-pthread_spin_init (pthread_spinlock_t *lock, int pshared)
+__pthread_spin_init (pthread_spinlock_t *lock, int pshared)
{
/* Relaxed MO is fine because this is an initializing store. */
atomic_store_relaxed (lock, 0);
return 0;
}
+versioned_symbol (libc, __pthread_spin_init, pthread_spin_init, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_spin_init, pthread_spin_init, GLIBC_2_2);
+#endif