diff options
| author | gfleury <gfleury@disroot.org> | 2025-08-15 20:14:53 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-08-16 01:44:51 +0200 |
| commit | 1e6588e777e4a07f68575f51ffcb1c84d9c73f50 (patch) | |
| tree | a9e1f354b9e2db94390e071766245e3a27af5530 /htl/pt-getattr.c | |
| parent | 6541288cb58d297be144cde4188ab41aecadc213 (diff) | |
htl: move pthread_getattr_np into libc.
Message-ID: <20250815181500.107433-13-gfleury@disroot.org>
Diffstat (limited to 'htl/pt-getattr.c')
| -rw-r--r-- | htl/pt-getattr.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/htl/pt-getattr.c b/htl/pt-getattr.c index a851514709..74b86ca767 100644 --- a/htl/pt-getattr.c +++ b/htl/pt-getattr.c @@ -21,6 +21,8 @@ #include <pthread.h> #include <pt-internal.h> +#include <shlib-compat.h> +#include <ldsodefs.h> /* Initialize thread attribute *ATTR with attributes corresponding to the already running thread THREAD. It shall be called on an uninitialized ATTR @@ -48,4 +50,9 @@ __pthread_getattr_np (pthread_t thread, pthread_attr_t *attr) return 0; } -weak_alias (__pthread_getattr_np, pthread_getattr_np) +libc_hidden_def (__pthread_getattr_np) +versioned_symbol (libc, __pthread_getattr_np, pthread_getattr_np, GLIBC_2_43); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43) +compat_symbol (libpthread, __pthread_getattr_np, pthread_getattr_np, GLIBC_2_12); +#endif |
