about summary refs log tree commit diff
path: root/nptl/pthread_rwlockattr_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_rwlockattr_init.c')
-rw-r--r--nptl/pthread_rwlockattr_init.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_init.c b/nptl/pthread_rwlockattr_init.c
index 0df2ddbcd2..3949a0698d 100644
--- a/nptl/pthread_rwlockattr_init.c
+++ b/nptl/pthread_rwlockattr_init.c
@@ -17,10 +17,10 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
-pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
+__pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
 {
   ASSERT_TYPE_SIZE (pthread_rwlockattr_t, __SIZEOF_PTHREAD_RWLOCKATTR_T);
   ASSERT_PTHREAD_INTERNAL_SIZE (pthread_rwlockattr_t,
@@ -35,3 +35,10 @@ pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
 
   return 0;
 }
+versioned_symbol (libc, __pthread_rwlockattr_init,
+                  pthread_rwlockattr_init, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_rwlockattr_init,
+               pthread_rwlockattr_init, GLIBC_2_1);
+#endif