diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:45:29 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:45:29 +0200 |
commit | 9f2f158b35b3f293f10158f76624b92515f8d886 (patch) | |
tree | b93d7fa9234825b880d90d949a0ff571ac6b5aa6 /nptl/pthread_mutexattr_getprotocol.c | |
parent | d236322b6f342d13bbd3fe97cb72ca53cba1b428 (diff) | |
download | glibc-9f2f158b35b3f293f10158f76624b92515f8d886.tar.gz glibc-9f2f158b35b3f293f10158f76624b92515f8d886.tar.xz glibc-9f2f158b35b3f293f10158f76624b92515f8d886.zip |
nptl: Move pthread_mutexattr_getprotocol into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_mutexattr_getprotocol.c')
-rw-r--r-- | nptl/pthread_mutexattr_getprotocol.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_mutexattr_getprotocol.c b/nptl/pthread_mutexattr_getprotocol.c index f970eab854..685f95a84e 100644 --- a/nptl/pthread_mutexattr_getprotocol.c +++ b/nptl/pthread_mutexattr_getprotocol.c @@ -18,10 +18,10 @@ <https://www.gnu.org/licenses/>. */ #include <pthreadP.h> - +#include <shlib-compat.h> int -pthread_mutexattr_getprotocol (const pthread_mutexattr_t *attr, int *protocol) +__pthread_mutexattr_getprotocol (const pthread_mutexattr_t *attr, int *protocol) { const struct pthread_mutexattr *iattr; @@ -32,3 +32,10 @@ pthread_mutexattr_getprotocol (const pthread_mutexattr_t *attr, int *protocol) return 0; } +versioned_symbol (libc, __pthread_mutexattr_getprotocol, + pthread_mutexattr_getprotocol, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_34) +compat_symbol (libpthread, __pthread_mutexattr_getprotocol, + pthread_mutexattr_getprotocol, GLIBC_2_4); +#endif |