aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl/pt-condattr-getpshared.c
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-26 22:53:26 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-09 02:03:18 +0100
commit25699c4c3ab7617fc3506ee0a6123881c78812ea (patch)
tree2071e4fd16615aac65ac0078af36c9b7b3f60188 /sysdeps/htl/pt-condattr-getpshared.c
parentf1b50413543205ddc246a09819b6ff47a714d763 (diff)
downloadglibc-25699c4c3ab7617fc3506ee0a6123881c78812ea.tar.xz
glibc-25699c4c3ab7617fc3506ee0a6123881c78812ea.zip
htl: move pthread_condattr_getpshared into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20241126205329.2215295-5-gfleury@disroot.org>
Diffstat (limited to 'sysdeps/htl/pt-condattr-getpshared.c')
-rw-r--r--sysdeps/htl/pt-condattr-getpshared.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-condattr-getpshared.c b/sysdeps/htl/pt-condattr-getpshared.c
index 7aea9e6e5a..90e9c488b1 100644
--- a/sysdeps/htl/pt-condattr-getpshared.c
+++ b/sysdeps/htl/pt-condattr-getpshared.c
@@ -17,11 +17,17 @@
<https://www.gnu.org/licenses/>. */
#include <pthread.h>
+#include <shlib-compat.h>
#include <pt-internal.h>
int
-pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
+__pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
{
*pshared = attr->__pshared;
return 0;
}
+versioned_symbol (libpthread, __pthread_condattr_getpshared, pthread_condattr_getpshared, GLIBC_2_41);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
+compat_symbol (libpthread, __pthread_condattr_getpshared, pthread_condattr_getpshared, GLIBC_2_12);
+#endif