diff options
Diffstat (limited to 'nptl/pthread_setspecific.c')
-rw-r--r-- | nptl/pthread_setspecific.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/nptl/pthread_setspecific.c b/nptl/pthread_setspecific.c index a6e84cd..fdcab3b 100644 --- a/nptl/pthread_setspecific.c +++ b/nptl/pthread_setspecific.c @@ -19,10 +19,10 @@ #include <errno.h> #include <stdlib.h> #include "pthreadP.h" - +#include <shlib-compat.h> int -__pthread_setspecific (pthread_key_t key, const void *value) +___pthread_setspecific (pthread_key_t key, const void *value) { struct pthread *self; unsigned int idx1st; @@ -89,5 +89,17 @@ __pthread_setspecific (pthread_key_t key, const void *value) return 0; } -weak_alias (__pthread_setspecific, pthread_setspecific) -hidden_def (__pthread_setspecific) +versioned_symbol (libc, ___pthread_setspecific, __pthread_setspecific, + GLIBC_2_34); +libc_hidden_ver (___pthread_setspecific, __pthread_setspecific) + +/* Several aliases for setting different symbol versions. */ + +versioned_symbol (libc, ___pthread_setspecific, pthread_setspecific, + GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_34) +compat_symbol (libpthread, ___pthread_setspecific, __pthread_setspecific, + GLIBC_2_0); +compat_symbol (libpthread, ___pthread_setspecific, pthread_setspecific, + GLIBC_2_0); +#endif |