summaryrefslogtreecommitdiff
path: root/sysdeps/pthread/thrd_join.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/thrd_join.c')
-rw-r--r--sysdeps/pthread/thrd_join.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sysdeps/pthread/thrd_join.c b/sysdeps/pthread/thrd_join.c
index ca9cf3b558..7e06eadb72 100644
--- a/sysdeps/pthread/thrd_join.c
+++ b/sysdeps/pthread/thrd_join.c
@@ -18,6 +18,7 @@
#include "thrd_priv.h"
#include <shlib-compat.h>
+#include <c11-thread.h>
int
__thrd_join (thrd_t thr, int *res)
@@ -29,11 +30,7 @@ __thrd_join (thrd_t thr, int *res)
return thrd_err_map (err_code);
}
-#if PTHREAD_IN_LIBC
-versioned_symbol (libc, __thrd_join, thrd_join, GLIBC_2_34);
-# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34)
-compat_symbol (libc, __thrd_join, thrd_join, GLIBC_2_28);
-# endif
-#else /* !PTHREAD_IN_LIBC */
-strong_alias (__thrd_join, thrd_join)
+versioned_symbol (libc, __thrd_join, thrd_join, C11_THREADS_IN_LIBC);
+#if OTHER_SHLIB_COMPAT (libpthread, C11_THREADS_INTRODUCED, C11_THREADS_IN_LIBC)
+compat_symbol (libpthread, __thrd_join, thrd_join, C11_THREADS_INTRODUCED);
#endif