diff options
Diffstat (limited to 'sysdeps/pthread/tss_create.c')
-rw-r--r-- | sysdeps/pthread/tss_create.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/pthread/tss_create.c b/sysdeps/pthread/tss_create.c index a059f39ac8..197f643401 100644 --- a/sysdeps/pthread/tss_create.c +++ b/sysdeps/pthread/tss_create.c @@ -16,10 +16,11 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ +#include <shlib-compat.h> #include "thrd_priv.h" int -tss_create (tss_t *tss_id, tss_dtor_t destructor) +__tss_create (tss_t *tss_id, tss_dtor_t destructor) { _Static_assert (sizeof (tss_t) == sizeof (pthread_key_t), "sizeof (tss_t) != sizeof (pthread_key_t)"); @@ -31,3 +32,11 @@ tss_create (tss_t *tss_id, tss_dtor_t destructor) int err_code = __pthread_key_create (tss_id, destructor); return thrd_err_map (err_code); } +#if PTHREAD_IN_LIBC +versioned_symbol (libc, __tss_create, tss_create, GLIBC_2_34); +# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34) +compat_symbol (libpthread, __tss_create, tss_create, GLIBC_2_28); +# endif +#else /* !PTHREAD_IN_LIBC */ +strong_alias (__tss_create, tss_create) +#endif |