diff options
Diffstat (limited to 'nptl/pthread_mutexattr_getrobust.c')
-rw-r--r-- | nptl/pthread_mutexattr_getrobust.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/nptl/pthread_mutexattr_getrobust.c b/nptl/pthread_mutexattr_getrobust.c index 0929898eea..7fb0a676a6 100644 --- a/nptl/pthread_mutexattr_getrobust.c +++ b/nptl/pthread_mutexattr_getrobust.c @@ -17,10 +17,11 @@ <https://www.gnu.org/licenses/>. */ #include <pthreadP.h> - +#include <shlib-compat.h> int -pthread_mutexattr_getrobust (const pthread_mutexattr_t *attr, int *robustness) +__pthread_mutexattr_getrobust (const pthread_mutexattr_t *attr, + int *robustness) { const struct pthread_mutexattr *iattr; @@ -31,4 +32,15 @@ pthread_mutexattr_getrobust (const pthread_mutexattr_t *attr, int *robustness) return 0; } -weak_alias (pthread_mutexattr_getrobust, pthread_mutexattr_getrobust_np) +versioned_symbol (libc, __pthread_mutexattr_getrobust, + pthread_mutexattr_getrobust, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_34) +compat_symbol (libpthread, __pthread_mutexattr_getrobust, + pthread_mutexattr_getrobust_np, GLIBC_2_4); +#endif + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_34) +compat_symbol (libpthread, __pthread_mutexattr_getrobust, + pthread_mutexattr_getrobust, GLIBC_2_12); +#endif |