diff options
Diffstat (limited to 'sysdeps/pthread/mtx_destroy.c')
-rw-r--r-- | sysdeps/pthread/mtx_destroy.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/pthread/mtx_destroy.c b/sysdeps/pthread/mtx_destroy.c index 2ccdc17..cb7efd2 100644 --- a/sysdeps/pthread/mtx_destroy.c +++ b/sysdeps/pthread/mtx_destroy.c @@ -18,9 +18,18 @@ #include "thrd_priv.h" #include "pthreadP.h" +#include <shlib-compat.h> void -mtx_destroy (mtx_t *mutex) +__mtx_destroy (mtx_t *mutex) { __pthread_mutex_destroy ((pthread_mutex_t *) mutex); } +#if PTHREAD_IN_LIBC +versioned_symbol (libc, __mtx_destroy, mtx_destroy, GLIBC_2_34); +# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34) +compat_symbol (libpthread, __mtx_destroy, mtx_destroy, GLIBC_2_28); +# endif +#else /* !PTHREAD_IN_LIBC */ +strong_alias (__mtx_destroy, mtx_destroy) +#endif |