about summary refs log tree commit diff
path: root/nptl/pthread_setconcurrency.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_setconcurrency.c')
-rw-r--r--nptl/pthread_setconcurrency.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_setconcurrency.c b/nptl/pthread_setconcurrency.c
index e58a1446f4..5bc93ddaef 100644
--- a/nptl/pthread_setconcurrency.c
+++ b/nptl/pthread_setconcurrency.c
@@ -18,14 +18,14 @@
 
 #include <errno.h>
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 /* Global definition.  Needed in pthread_getconcurrency as well.  */
 int __concurrency_level;
 
 
 int
-pthread_setconcurrency (int level)
+__pthread_setconcurrency (int level)
 {
   if (level < 0)
     return EINVAL;
@@ -37,3 +37,10 @@ pthread_setconcurrency (int level)
 
   return 0;
 }
+versioned_symbol (libc, __pthread_setconcurrency, pthread_setconcurrency,
+                  GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_setconcurrency, pthread_setconcurrency,
+               GLIBC_2_1);
+#endif