aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_barrier_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_barrier_destroy.c')
-rw-r--r--nptl/pthread_barrier_destroy.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_barrier_destroy.c b/nptl/pthread_barrier_destroy.c
index e815738..be5cde2 100644
--- a/nptl/pthread_barrier_destroy.c
+++ b/nptl/pthread_barrier_destroy.c
@@ -20,10 +20,10 @@
#include "pthreadP.h"
#include <atomic.h>
#include <futex-internal.h>
-
+#include <shlib-compat.h>
int
-pthread_barrier_destroy (pthread_barrier_t *barrier)
+__pthread_barrier_destroy (pthread_barrier_t *barrier)
{
struct pthread_barrier *bar = (struct pthread_barrier *) barrier;
@@ -59,3 +59,10 @@ pthread_barrier_destroy (pthread_barrier_t *barrier)
return 0;
}
+versioned_symbol (libc, __pthread_barrier_destroy, pthread_barrier_destroy,
+ GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_barrier_destroy, pthread_barrier_destroy,
+ GLIBC_2_2);
+#endif