summaryrefslogtreecommitdiff
path: root/nptl/old_pthread_cond_init.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-10 11:47:13 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-20 08:57:01 +0100
commitad96df2cd9194b84686c272257e96ea74caff72a (patch)
tree79e60424dc5ad85debebe8919398006a6ca194b8 /nptl/old_pthread_cond_init.c
parentdc6cfdc934db9997c33728082d63552b9eee4563 (diff)
downloadglibc-ad96df2cd9194b84686c272257e96ea74caff72a.tar.gz
nptl: Move pthread_cond_init implementation into libc
It is necessary to export __pthread_cond_init from libc because the C11 condition variable needs it and is still left in libpthread. This is part of the libpthread removal project: <https://sourceware.org/ml/libc-alpha/2019-10/msg00080.html> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/old_pthread_cond_init.c')
-rw-r--r--nptl/old_pthread_cond_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/old_pthread_cond_init.c b/nptl/old_pthread_cond_init.c
index df0f1fd7e8..d71aa802b8 100644
--- a/nptl/old_pthread_cond_init.c
+++ b/nptl/old_pthread_cond_init.c
@@ -21,7 +21,7 @@
#include <shlib-compat.h>
-#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2)
+#if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3_2)
int
__pthread_cond_init_2_0 (pthread_cond_2_0_t *cond,
const pthread_condattr_t *cond_attr)
@@ -40,6 +40,6 @@ __pthread_cond_init_2_0 (pthread_cond_2_0_t *cond,
return 0;
}
-compat_symbol (libpthread, __pthread_cond_init_2_0, pthread_cond_init,
+compat_symbol (libc, __pthread_cond_init_2_0, pthread_cond_init,
GLIBC_2_0);
#endif