about summary refs log tree commit diff
path: root/nptl/pthread_condattr_getclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_condattr_getclock.c')
-rw-r--r--nptl/pthread_condattr_getclock.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/nptl/pthread_condattr_getclock.c b/nptl/pthread_condattr_getclock.c
index 64a92a14cb..ad5655dbce 100644
--- a/nptl/pthread_condattr_getclock.c
+++ b/nptl/pthread_condattr_getclock.c
@@ -17,12 +17,20 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
-pthread_condattr_getclock (const pthread_condattr_t *attr, clockid_t *clock_id)
+__pthread_condattr_getclock (const pthread_condattr_t *attr,
+			      clockid_t *clock_id)
 {
   *clock_id = (((((const struct pthread_condattr *) attr)->value) >> 1)
 	       & ((1 << COND_CLOCK_BITS) - 1));
   return 0;
 }
+versioned_symbol (libc, __pthread_condattr_getclock,
+		  pthread_condattr_getclock, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_condattr_getclock,
+	       pthread_condattr_getclock, GLIBC_2_3_3);
+#endif