diff options
Diffstat (limited to 'nptl/pthread_once.c')
-rw-r--r-- | nptl/pthread_once.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nptl/pthread_once.c b/nptl/pthread_once.c index 3c5bc33622..81d3f25848 100644 --- a/nptl/pthread_once.c +++ b/nptl/pthread_once.c @@ -144,3 +144,13 @@ __pthread_once (pthread_once_t *once_control, void (*init_routine) (void)) } weak_alias (__pthread_once, pthread_once) hidden_def (__pthread_once) + +#ifdef SHARED +# include <shlib-compat.h> +strong_alias (__pthread_once, __pthread_once_2_0) +strong_alias (__pthread_once, __pthread_once_private) +compat_symbol (libpthread, __pthread_once_2_0, + __pthread_once, GLIBC_2_0); +compat_symbol (libpthread, __pthread_once_private, + __pthread_once, GLIBC_PRIVATE); +#endif |