summary refs log tree commit diff
path: root/nptl/pthread_condattr_getpshared.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_condattr_getpshared.c')
-rw-r--r--nptl/pthread_condattr_getpshared.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_condattr_getpshared.c b/nptl/pthread_condattr_getpshared.c
index 9d88aaafb5..46974b0f9d 100644
--- a/nptl/pthread_condattr_getpshared.c
+++ b/nptl/pthread_condattr_getpshared.c
@@ -17,13 +17,20 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
-pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
+__pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
 {
   *pshared = (((const struct pthread_condattr *) attr)->value & 1
 	      ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE);
 
   return 0;
 }
+versioned_symbol (libc, __pthread_condattr_getpshared,
+		  pthread_condattr_getpshared, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_condattr_getpshared,
+	       pthread_condattr_getpshared, GLIBC_2_2);
+#endif