diff options
| author | gfleury <gfleury@disroot.org> | 2025-02-09 22:01:03 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-10 01:18:56 +0100 |
| commit | ca2a95ee677867168bd9b5542a70255b47c12849 (patch) | |
| tree | f321a4f1c6bcf89c2ccdd2ee943beef437a88938 /sysdeps/htl/pt-barrierattr-init.c | |
| parent | 40cbd3c361f8460a53484d6803b96618119d078b (diff) | |
| download | glibc-ca2a95ee677867168bd9b5542a70255b47c12849.tar.xz glibc-ca2a95ee677867168bd9b5542a70255b47c12849.zip | |
htl: move pthread_barrierattr_init into libc.
Message-ID: <20250209200108.865599-4-gfleury@disroot.org>
Diffstat (limited to 'sysdeps/htl/pt-barrierattr-init.c')
| -rw-r--r-- | sysdeps/htl/pt-barrierattr-init.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-barrierattr-init.c b/sysdeps/htl/pt-barrierattr-init.c index 1d2f162b83..5a520bb989 100644 --- a/sysdeps/htl/pt-barrierattr-init.c +++ b/sysdeps/htl/pt-barrierattr-init.c @@ -18,12 +18,19 @@ #include <pthread.h> #include <pt-internal.h> +#include <shlib-compat.h> int -pthread_barrierattr_init (pthread_barrierattr_t *attr) +__pthread_barrierattr_init (pthread_barrierattr_t *attr) { ASSERT_TYPE_SIZE (pthread_barrierattr_t, __SIZEOF_PTHREAD_BARRIERATTR_T); *attr = __pthread_default_barrierattr; return 0; } +libc_hidden_def (__pthread_barrierattr_init) +versioned_symbol (libc, __pthread_barrierattr_init, pthread_barrierattr_init, GLIBC_2_42); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_42) +compat_symbol (libpthread, __pthread_barrierattr_init, pthread_barrierattr_init, GLIBC_2_12); +#endif |
