From 9f13a95b6fa848599b40b8f038f33084c5089bc1 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 3 May 2021 09:10:57 +0200 Subject: nptl: Move pthread_rwlockattr_getkind_np into libc The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- nptl/pthread_rwlockattr_getkind_np.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'nptl/pthread_rwlockattr_getkind_np.c') diff --git a/nptl/pthread_rwlockattr_getkind_np.c b/nptl/pthread_rwlockattr_getkind_np.c index 840b3874c2..53cecf5b99 100644 --- a/nptl/pthread_rwlockattr_getkind_np.c +++ b/nptl/pthread_rwlockattr_getkind_np.c @@ -17,12 +17,19 @@ . */ #include "pthreadP.h" - +#include int -pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t *attr, int *pref) +__pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t *attr, int *pref) { *pref = ((const struct pthread_rwlockattr *) attr)->lockkind; return 0; } +versioned_symbol (libc, __pthread_rwlockattr_getkind_np, + pthread_rwlockattr_getkind_np, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __pthread_rwlockattr_getkind_np, + pthread_rwlockattr_getkind_np, GLIBC_2_1); +#endif -- cgit v1.2.1