aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/thrd_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/thrd_exit.c')
-rw-r--r--sysdeps/pthread/thrd_exit.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/pthread/thrd_exit.c b/sysdeps/pthread/thrd_exit.c
index 7348e83dcc..1554af422c 100644
--- a/sysdeps/pthread/thrd_exit.c
+++ b/sysdeps/pthread/thrd_exit.c
@@ -16,10 +16,19 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
+#include <shlib-compat.h>
#include "thrd_priv.h"
_Noreturn void
-thrd_exit (int res)
+__thrd_exit (int res)
{
__pthread_exit ((void*)(uintptr_t) res);
}
+#if PTHREAD_IN_LIBC
+versioned_symbol (libc, __thrd_exit, thrd_exit, GLIBC_2_34);
+# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34)
+compat_symbol (libpthread, __thrd_exit, thrd_exit, GLIBC_2_28);
+# endif
+#else /* !PTHREAD_IN_LIBC */
+strong_alias (__thrd_exit, thrd_exit)
+#endif