aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-26 22:53:25 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-09 02:03:17 +0100
commitf1b50413543205ddc246a09819b6ff47a714d763 (patch)
tree2f66079b7b5f819eb5a1d02c15907b7b51c439ea /sysdeps/htl
parent7ded100d36a8decd0409f695bab5bee5e35395a6 (diff)
downloadglibc-f1b50413543205ddc246a09819b6ff47a714d763.tar.xz
glibc-f1b50413543205ddc246a09819b6ff47a714d763.zip
htl: move pthread_condattr_getclock into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20241126205329.2215295-4-gfleury@disroot.org>
Diffstat (limited to 'sysdeps/htl')
-rw-r--r--sysdeps/htl/pt-condattr-getclock.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysdeps/htl/pt-condattr-getclock.c b/sysdeps/htl/pt-condattr-getclock.c
index a1ac71b038..cea53f484f 100644
--- a/sysdeps/htl/pt-condattr-getclock.c
+++ b/sysdeps/htl/pt-condattr-getclock.c
@@ -17,13 +17,18 @@
<https://www.gnu.org/licenses/>. */
#include <pthread.h>
+#include <shlib-compat.h>
#include <time.h>
-
#include <pt-internal.h>
int
-pthread_condattr_getclock (const pthread_condattr_t *attr, clockid_t * clock)
+__pthread_condattr_getclock (const pthread_condattr_t *attr, clockid_t * clock)
{
*clock = attr->__clock;
return 0;
}
+versioned_symbol (libc, __pthread_condattr_getclock, pthread_condattr_getclock, GLIBC_2_41);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
+compat_symbol (libpthread, __pthread_condattr_getclock, pthread_condattr_getclock, GLIBC_2_12);
+#endif