diff options
Diffstat (limited to 'nptl/pthread_mutex_trylock.c')
-rw-r--r-- | nptl/pthread_mutex_trylock.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/nptl/pthread_mutex_trylock.c b/nptl/pthread_mutex_trylock.c index e52dddafbd..623ea75db0 100644 --- a/nptl/pthread_mutex_trylock.c +++ b/nptl/pthread_mutex_trylock.c @@ -24,7 +24,7 @@ #include <futex-internal.h> int -__pthread_mutex_trylock (pthread_mutex_t *mutex) +___pthread_mutex_trylock (pthread_mutex_t *mutex) { int oldval; pid_t id = THREAD_GETMEM (THREAD_SELF, tid); @@ -449,10 +449,14 @@ __pthread_mutex_trylock (pthread_mutex_t *mutex) return EBUSY; } - -#ifndef __pthread_mutex_trylock -#ifndef pthread_mutex_trylock -weak_alias (__pthread_mutex_trylock, pthread_mutex_trylock) -hidden_def (__pthread_mutex_trylock) -#endif +libc_hidden_ver (___pthread_mutex_trylock, __pthread_mutex_trylock) +versioned_symbol (libc, ___pthread_mutex_trylock, + pthread_mutex_trylock, GLIBC_2_34); +versioned_symbol (libc, ___pthread_mutex_trylock, + __pthread_mutex_trylock, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34) +compat_symbol (libpthread, ___pthread_mutex_trylock, + pthread_mutex_trylock, GLIBC_2_0); +compat_symbol (libpthread, ___pthread_mutex_trylock, + __pthread_mutex_trylock, GLIBC_2_0); #endif |