about summary refs log tree commit diff
path: root/nptl/pthread_rwlockattr_getpshared.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_rwlockattr_getpshared.c')
-rw-r--r--nptl/pthread_rwlockattr_getpshared.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_getpshared.c b/nptl/pthread_rwlockattr_getpshared.c
index bf62eeec94..3e126e720e 100644
--- a/nptl/pthread_rwlockattr_getpshared.c
+++ b/nptl/pthread_rwlockattr_getpshared.c
@@ -17,12 +17,20 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
-pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *attr, int *pshared)
+__pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *attr,
+                                  int *pshared)
 {
   *pshared = ((const struct pthread_rwlockattr *) attr)->pshared;
 
   return 0;
 }
+versioned_symbol (libc, __pthread_rwlockattr_getpshared,
+                  pthread_rwlockattr_getpshared, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_rwlockattr_getpshared,
+               pthread_rwlockattr_getpshared, GLIBC_2_1);
+#endif