diff options
Diffstat (limited to 'nptl/pthread_getconcurrency.c')
-rw-r--r-- | nptl/pthread_getconcurrency.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_getconcurrency.c b/nptl/pthread_getconcurrency.c index 2ff9afa51b..387f7ffa39 100644 --- a/nptl/pthread_getconcurrency.c +++ b/nptl/pthread_getconcurrency.c @@ -17,10 +17,17 @@ <https://www.gnu.org/licenses/>. */ #include "pthreadP.h" - +#include <shlib-compat.h> int -pthread_getconcurrency (void) +__pthread_getconcurrency (void) { return __concurrency_level; } +versioned_symbol (libc, __pthread_getconcurrency, pthread_getconcurrency, + GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __pthread_getconcurrency, pthread_getconcurrency, + GLIBC_2_1); +#endif |