summaryrefslogtreecommitdiff
path: root/htl/pt-testcancel.c
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-08-15 20:14:52 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-08-16 01:44:50 +0200
commit6541288cb58d297be144cde4188ab41aecadc213 (patch)
tree35618623741683a8cc34fef8788bb7530bec7c74 /htl/pt-testcancel.c
parentedcc9ca48c803eca5ede520616fc719438cb6929 (diff)
htl: move pthread_testcancel into libc.
Message-ID: <20250815181500.107433-12-gfleury@disroot.org>
Diffstat (limited to 'htl/pt-testcancel.c')
-rw-r--r--htl/pt-testcancel.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/htl/pt-testcancel.c b/htl/pt-testcancel.c
index 4eef765f30..0332f6dd74 100644
--- a/htl/pt-testcancel.c
+++ b/htl/pt-testcancel.c
@@ -20,6 +20,7 @@
#include <pt-internal.h>
#include <pthreadP.h>
+#include <shlib-compat.h>
void
__pthread_testcancel (void)
@@ -34,4 +35,10 @@ __pthread_testcancel (void)
if (cancelled)
__pthread_exit (PTHREAD_CANCELED);
}
-strong_alias (__pthread_testcancel, pthread_testcancel)
+
+libc_hidden_def (__pthread_testcancel)
+versioned_symbol (libc, __pthread_testcancel, pthread_testcancel, GLIBC_2_43);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43)
+compat_symbol (libpthread, __pthread_testcancel, pthread_testcancel, GLIBC_2_12);
+#endif