about summary refs log tree commit diff
path: root/nptl/pthread_mutexattr_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_mutexattr_destroy.c')
-rw-r--r--nptl/pthread_mutexattr_destroy.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/nptl/pthread_mutexattr_destroy.c b/nptl/pthread_mutexattr_destroy.c
index 2c2ec5ade9..32ead52259 100644
--- a/nptl/pthread_mutexattr_destroy.c
+++ b/nptl/pthread_mutexattr_destroy.c
@@ -17,11 +17,18 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <pthreadP.h>
-
+#include <shlib-compat.h>
 
 int
-__pthread_mutexattr_destroy (pthread_mutexattr_t *attr)
+___pthread_mutexattr_destroy (pthread_mutexattr_t *attr)
 {
   return 0;
 }
-strong_alias (__pthread_mutexattr_destroy, pthread_mutexattr_destroy)
+versioned_symbol (libc, ___pthread_mutexattr_destroy,
+                  pthread_mutexattr_destroy, GLIBC_2_34);
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34)
+compat_symbol (libc, ___pthread_mutexattr_destroy,
+               pthread_mutexattr_destroy, GLIBC_2_0);
+compat_symbol (libc, ___pthread_mutexattr_destroy,
+               __pthread_mutexattr_destroy, GLIBC_2_0);
+#endif