aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl/pt-attr-getstack.c
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-18 13:21:39 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-11-19 01:37:35 +0100
commit330c1fad5b909399a245e96f3e1db5fbaa6ea413 (patch)
treee3ebe8d13f05968d6a101ea58a2e1f102c932e2f /sysdeps/htl/pt-attr-getstack.c
parent1428ae39e8d72d04d8c7d88186d6137bbe5a04d1 (diff)
downloadglibc-330c1fad5b909399a245e96f3e1db5fbaa6ea413.tar.xz
glibc-330c1fad5b909399a245e96f3e1db5fbaa6ea413.zip
htl: move pthread_attr_getstack into libc.
Signed-off-by: gfleury <gfleury@disroot.org>
Diffstat (limited to 'sysdeps/htl/pt-attr-getstack.c')
-rw-r--r--sysdeps/htl/pt-attr-getstack.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-attr-getstack.c b/sysdeps/htl/pt-attr-getstack.c
index 42ab5fdd19..1a4baa3ec6 100644
--- a/sysdeps/htl/pt-attr-getstack.c
+++ b/sysdeps/htl/pt-attr-getstack.c
@@ -18,6 +18,7 @@
#include <pthread.h>
#include <pt-internal.h>
+#include <shlib-compat.h>
#include <pthreadP.h>
int
@@ -28,4 +29,9 @@ __pthread_attr_getstack (const pthread_attr_t *attr,
__pthread_attr_getstacksize (attr, stacksize);
return 0;
}
-weak_alias (__pthread_attr_getstack, pthread_attr_getstack)
+libc_hidden_def (__pthread_attr_getstack)
+versioned_symbol (libpthread, __pthread_attr_getstack, pthread_attr_getstack, GLIBC_2_41);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
+compat_symbol (libpthread, __pthread_attr_getstack, pthread_attr_getstack, GLIBC_2_12);
+#endif