about summary refs log tree commit diff
path: root/nptl/pthread_rwlockattr_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_rwlockattr_destroy.c')
-rw-r--r--nptl/pthread_rwlockattr_destroy.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_destroy.c b/nptl/pthread_rwlockattr_destroy.c
index fefe022760..3ed19f8ac7 100644
--- a/nptl/pthread_rwlockattr_destroy.c
+++ b/nptl/pthread_rwlockattr_destroy.c
@@ -17,12 +17,19 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
-pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr)
+__pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr)
 {
   /* Nothing to do.  For now.  */
 
   return 0;
 }
+versioned_symbol (libc, __pthread_rwlockattr_destroy,
+                  pthread_rwlockattr_destroy, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_rwlockattr_destroy,
+               pthread_rwlockattr_destroy, GLIBC_2_1);
+#endif