From b76658451c819c87adb2e7055b19e7600acc2ae6 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 3 Dec 2020 11:43:25 -0300 Subject: nptl: Move pthread_kill to libc A new 2.34 version is also provided. Checked on x86_64-linux-gnu. --- nptl/pthread_kill.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nptl/pthread_kill.c') diff --git a/nptl/pthread_kill.c b/nptl/pthread_kill.c index 84b40478aa..ad7e011779 100644 --- a/nptl/pthread_kill.c +++ b/nptl/pthread_kill.c @@ -18,6 +18,7 @@ #include #include +#include int __pthread_kill (pthread_t threadid, int signo) @@ -43,4 +44,8 @@ __pthread_kill (pthread_t threadid, int signo) return (INTERNAL_SYSCALL_ERROR_P (val) ? INTERNAL_SYSCALL_ERRNO (val) : 0); } -strong_alias (__pthread_kill, pthread_kill) +versioned_symbol (libc, __pthread_kill, pthread_kill, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34) +compat_symbol (libc, __pthread_kill, pthread_kill, GLIBC_2_0); +#endif -- cgit v1.2.3