aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_yield.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_yield.c')
-rw-r--r--nptl/pthread_yield.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/nptl/pthread_yield.c b/nptl/pthread_yield.c
index b9eecd5..638d6a3 100644
--- a/nptl/pthread_yield.c
+++ b/nptl/pthread_yield.c
@@ -18,12 +18,13 @@
#include <pthread.h>
#include <sched.h>
+#include <shlib-compat.h>
-
-/* With the 1-on-1 model we implement this function is equivalent to
- the 'sched_yield' function. */
-int
-pthread_yield (void)
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+int attribute_compat_text_section
+__pthread_yield (void)
{
- return sched_yield ();
+ return __sched_yield ();
}
+compat_symbol (libpthread, __pthread_yield, pthread_yield, GLIBC_2_2);
+#endif /* OTHER_SHLIB_COMPAT */