diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 11:17:10 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 11:17:10 +0200 |
commit | d9b600c98503b4094bc168b9b7452ea39a0abf30 (patch) | |
tree | 3fc4041c397bad8e4ae36c0386226be38376008c /nptl/pthread_condattr_setpshared.c | |
parent | 6a75fefc2c05f1100d1ecd4bd195ea73c1b1a954 (diff) | |
download | glibc-d9b600c98503b4094bc168b9b7452ea39a0abf30.zip glibc-d9b600c98503b4094bc168b9b7452ea39a0abf30.tar.gz glibc-d9b600c98503b4094bc168b9b7452ea39a0abf30.tar.bz2 |
nptl: Move pthread_condattr_setpshared into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_condattr_setpshared.c')
-rw-r--r-- | nptl/pthread_condattr_setpshared.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nptl/pthread_condattr_setpshared.c b/nptl/pthread_condattr_setpshared.c index 44c0cc1..64b66cc 100644 --- a/nptl/pthread_condattr_setpshared.c +++ b/nptl/pthread_condattr_setpshared.c @@ -19,9 +19,10 @@ #include <errno.h> #include <pthreadP.h> #include <futex-internal.h> +#include <shlib-compat.h> int -pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared) +__pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared) { int err = futex_supports_pshared (pshared); if (err != 0) @@ -33,3 +34,10 @@ pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared) return 0; } +versioned_symbol (libc, __pthread_condattr_setpshared, + pthread_condattr_setpshared, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_condattr_setpshared, + pthread_condattr_setpshared, GLIBC_2_2); +#endif |