diff options
Diffstat (limited to 'nptl/pthread_testcancel.c')
-rw-r--r-- | nptl/pthread_testcancel.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nptl/pthread_testcancel.c b/nptl/pthread_testcancel.c index 8ed2370afa..a9e941ddb7 100644 --- a/nptl/pthread_testcancel.c +++ b/nptl/pthread_testcancel.c @@ -18,12 +18,18 @@ #include <stdlib.h> #include "pthreadP.h" - +#include <shlib-compat.h> void -__pthread_testcancel (void) +___pthread_testcancel (void) { CANCELLATION_P (THREAD_SELF); } -strong_alias (__pthread_testcancel, pthread_testcancel) -hidden_def (__pthread_testcancel) +versioned_symbol (libc, ___pthread_testcancel, pthread_testcancel, GLIBC_2_34); +versioned_symbol (libc, ___pthread_testcancel, __pthread_testcancel, + GLIBC_PRIVATE); +libc_hidden_ver (___pthread_testcancel, __pthread_testcancel) + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34) +compat_symbol (libc, ___pthread_testcancel, pthread_testcancel, GLIBC_2_0); +#endif |