aboutsummaryrefslogtreecommitdiff
path: root/htl/pt-exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'htl/pt-exit.c')
-rw-r--r--htl/pt-exit.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/htl/pt-exit.c b/htl/pt-exit.c
index 2aba043..9d331d0 100644
--- a/htl/pt-exit.c
+++ b/htl/pt-exit.c
@@ -25,7 +25,7 @@
#include <pthreadP.h>
#include <atomic.h>
-
+#include <shlib-compat.h>
/* Terminate the current thread and make STATUS available to any
thread that might join it. */
@@ -112,4 +112,9 @@ __pthread_exit (void *status)
abort ();
}
-weak_alias (__pthread_exit, pthread_exit);
+libc_hidden_def (__pthread_exit)
+versioned_symbol (libc, __pthread_exit, pthread_exit, GLIBC_2_21);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_21)
+compat_symbol (libpthread, __pthread_exit, pthread_exit, GLIBC_2_12);
+#endif