mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user